Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5856|回复: 3

[已解决] how to get xy origin

[复制链接]
发表于 2014-4-22 16:31:42 | 显示全部楼层 |阅读模式
how to get xy origin o cline segs connected to via or thru pin using skill? pls help tnx
发表于 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)
)
 楼主| 发表于 2014-4-23 21:15:37 | 显示全部楼层
vivienluo 发表于 2014-4-22 20:01
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?
发表于 2014-4-23 21:27:23 | 显示全部楼层
core.optimus 发表于 2014-4-23 21:15
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
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-4-29 17:08 , Processed in 0.147580 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表