乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 32|回复: 3

[编程交流] Mleader ;;; vla-put-???

[复制链接]

12

主题

179

帖子

167

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
60
发表于 2022-7-6 09:00:22 | 显示全部楼层 |阅读模式
I'm looking for the VLA-PUT-command to set an mleader style to current. I know it's possible with command-line, but I would rather use vla, seeing as the rest of the mleader creation is using vlax-put-property.
 
Thanks,
Lee
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 09:39:26 | 显示全部楼层
  1. (setvar 'CMLEADERSTYLE )
 
Or, if you really (and unnecessarily) wanted to use VL:
 
  1. (vla-setvariable   (vla-get-activedocument (vlax-get-acad-object))   "CMLEADERSTYLE"   (vlax-make-variant "YourStyleHere" vlax-vbstring))
回复

使用道具 举报

12

主题

179

帖子

167

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
60
发表于 2022-7-6 09:57:13 | 显示全部楼层
Thanks Lee. I dunno why I didn't think of the SetVar, it serves my purpose perfectly.
 
Thanks!
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:18:57 | 显示全部楼层
You're welcome!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 06:29 , Processed in 0.327159 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表