一步一步获取每一个器件包含的东西
Skill > car(axlDBGetDesign()->components)->symbol->children(dbid:623372464 dbid:623486736 dbid:617781048 dbid:617781280 dbid:617781560
dbid:617780456 dbid:617780648 dbid:617780720 dbid:617780792 dbid:617780864
dbid:617780936
)
由car(axlDBGetDesign()->components)->symbol->children 这个语句“children”知道这个器件“car(axlDBGetDesign()->components)”还有很多物件,每个物件的dbid如上,接下来再获取其中一个dbid,看里面有什么内容
Skill > car(car(axlDBGetDesign()->components)->symbol->children)->?
(parentGroups justify isMirrored objType parent
rotation mirrorType textBlock text xy
readOnly bBox layer prop
)
Skill > car(car(axlDBGetDesign()->components)->symbol->children)->text
"U194"
这里属性“text”是他的位号,(其实位号在上一层Skill > car(axlDBGetDesign()->components)->name
"U194"也可以读取)
Skill > car(car(axlDBGetDesign()->components)->symbol->children) 这里car是取得第一个属性,证明是器件的"text"属性,气门再去取第二个看一下 gogogo冲冲冲!!! 发表于 2024-11-24 11:22
Skill > car(car(axlDBGetDesign()->components)->symbol->children) 这里car是取得第一个属性,证明 ...
用功能函数nth( 1 car(axlDBGetDesign()->components)->symbol->children))->?
Skill > nth(2 car(axlDBGetDesign()->components)->symbol->children))->?
W- *WARNING* (reader): extra ')' ignored at line 1 of string "...ents)->symbol->children))"
(parentGroups symbolEtch branch cavity connect
isRect isHole fill fillet nSegs
objType parent net segments voids
readOnly bBox layer region shapeBoundary
shapeAuto taper shapeIsBoundary dynamicGroup fillOOD
priority prop
) 感谢教程了,学习.还能再介绍一下查其它的DIBD的方法吗
页:
[1]