你好
首先,修改你的帖子,并在代码周围添加代码标签,以便于用户阅读,并避免在任何字符串组合匹配任何笑脸符号时出现笑脸。
其次,只需将新添加的属性对象分配给变量,并根据需要更改属性对象的对齐方式。
如。
- (setq att (vla-addattribute (vla-item (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) blk)
- (getvar 'textsize) acAttributeModeMultipleLine "New Attribute" (vlax-3D-point 0 0)
- "NEW_TAG" "New Value" ))
- (vla-put-Alignment att acAlignmentMiddleCenter)
|