some memos for Cadence skill

本文介绍如何使用 Allegro PCB 编辑器的 AXL 和 SKILL 功能来操作数据库对象,并提供了一些实用的技巧,如通过 dbid 获取对象、解决 dbid 失效问题以及获取 via 的钻孔信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You can select objects using the axlName functions

SKILL Development Window

You can get a larger SKILL-only window by setting the Allegro PCB Editor environment

variable, TELSKILL.

Note: All Allegro PCB Editor console output is directed to the SKILL window when the

TELSKILL variable is set

Object dbids (database identifiers)

Every Allegro PCB Editor database object has a unique dbid (database identifier)

associated with it. When you call a function to operate on a database object, you identify the

object to the function by giving the object’s dbid as an argument.

Only AXL routines can create dbids. You cannot alter dbids directly, except for parameter

record ids.

Out of Scope dbids

When a dbid is separated from its object, the dbid is considered out-of-scope. A dbid can

become separated from its object for any of the following reasons:

■ You delete an object.

■ You add a connect line that touches an existing connect line. This causes the existing line

to break in to two objects, each with a separate dbid, so the original dbid of the line no

longer dnotes the same object.

■ You return to Allegro PCB Editor from AXL.

■ You run an Allegro PCB Editor command while in SKILL, using the AXL shell function. To

minimize out-of-scope issues with AXL shell, isolate AXL shell functions and if necessary

refresh dbids after AXL shell calls with the function axlDBRefreshID.

■ You open a new layout.

Out of scope dbids have no attributes, so they have no object type. If you try to evaluate a

dbid that is out of scope, SKILL displays the message:

dbid: removed

Using an out of scope dbid in a function causes unexpected results.

Object Types

Each Allegro PCB Editor object has an associated type and a set of attributes that describe

the object. For example, all symbol objects are of type symbol. All symbols have the

isMirrored attribute, among others, and this attribute has the value t if the symbol is

mirrored or nil if it is not. You can use an AXL-SKILL function with “->” (the access

operator) to access any object attribute. If the attribute does not exist for that object the

function returns nil.

You use the SKILL special attributes ? (question mark) and ?? to see all attributes and all

attribute/value pairs of an object.

请问,怎么获取via的钻孔信息?

最好是能把钻孔转换成shape或者polygon

主要是要检查bbvia的钻孔是否和焊盘有重叠

目前做法是根据via->name获取钻孔大小

mypath = axlPathStart和axlPathArcCenter获取直径为钻孔大小的圆

axlPolyFromDB(mypath)转换成polygon

Finish current command before starting new command

axlShell(“done”) should do the trick. It ends the active command similar like the ESC key

or entering done in the command window.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值