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.