Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7615|回复: 2

[skill函数] setSGq and getSGq

[复制链接]
发表于 2015-9-22 15:21:53 | 显示全部楼层 |阅读模式
Squiggle Arrow (~>) Operator

The squiggle arrow (~>) operator is a generalization of the arrow operator. It works the same way as an arrow operator when applied directly to an object, but it can also accept a list of such objects. It walks the list applying the arrow operator whenever it finds an atomic object.

The underlying functions for ~> operator are the setSGq and getSGq functions, which set and retrieve the value of an attribute or a property. For example,

setSGq(obj value prop)             ; is equivalent to:
obj~>prop=value
a=getSGq(obj prop)                 ; is equivalent to:
a=obj~>prop
info=getSGq(cvId objType)          ; is equivalent to:
info=cvId~>objType
setSGq(rect list(10:10 100:120) bBox) ; is equivalent to:
rect~>bBox=list(10:10 100:120)
发表于 2017-2-4 09:26:49 | 显示全部楼层
继续学习中,感谢。
发表于 2020-10-27 09:14:46 | 显示全部楼层
学习了,谢谢分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-4-21 00:18 , Processed in 0.138061 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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