core.optimus 发表于 2014-4-22 16:31:42

how to get xy origin

how to get xy origin o cline segs connected to via or thru pin using skill? pls help tnx

vivienluo 发表于 2014-4-22 20:01:13

step 1 : get cline segs dbid and assigne it to the a variable clineDbid
step 2 : use clineDbid->startEnd to get cline segment xy origin

example:
axlClearSelSet()
axlSetFindFilter(?enabled list("NOALL" "CLINESEGS") ?onButtons list("NOALL" "CLINESEGS"))
axlSingleSelectPoint()
clineDbid = car(axlGetSelSet())
clineDbid->startEnd
=>
((3410.0 3650.0)
    (3410.0 3985.0)
)

core.optimus 发表于 2014-4-23 21:15:37

vivienluo 发表于 2014-4-22 20:01 static/image/common/back.gif
step 1 : get cline segs dbid and assigne it to the a variable clineDbid
step 2 : use clineDbid->sta ...

Thanks vivienluo,
that is for cline segs singleselectpoint, what if i want to get all cline segs connected to via or thru hole in whole board?

vivienluo 发表于 2014-4-23 21:27:23

core.optimus 发表于 2014-4-23 21:15 static/image/common/back.gif
Thanks vivienluo,
that is for cline segs singleselectpoint, what if i want to get all cline segs...

get cline dbid like cline segs.
and use clineDbid->segments is the cline segs

axlClearSelSet()
axlSetFindFilter(?enabled list("NOALL" "clines") ?onButtons list("NOALL" "clines"))
axlSingleSelectPoint()
a = car(axlGetSelSet())
foreach(seg a->segments
axlUIWPrint(nil "%L" seg->startEnd)
);end foreach
页: [1]
查看完整版本: how to get xy origin