马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
在 使用 vla 过程中,有一些 enum 类型参数,如 intersectwith 中 acExtendNone 、 acExtendThisEntity ,alignment 中的对齐方式,有时候看到的程序使用的是 INT 做参数,一般而言 enum 都是有 0 其实依次 +1 ,还有一种方法可以查看它们的对应关系
 - (defun value (lst)
- (mapcar '(lambda (x)
- (eval x)
- )
- lst
- )
- )
_$ (value '(acAlignmentLeft acAlignmentCenter
acAlignmentRight acAlignmentAligned
acAlignmentMiddle acAlignmentFit
acAlignmentTopLeft acAlignmentTopCenter
acAlignmentTopRight acAlignmentMiddleLeft
acAlignmentMiddleCenter acAlignmentMiddleRight
acAlignmentBottomLeft acAlignmentBottomCenter
acAlignmentBottomRight
)
)
(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14)
_$ (value '(acExtendNone
acExtendThisEntity
acExtendOtherEntity
acExtendBoth
)
)
(0 1 2 3) |