Lee Roy 发表于 2022-7-6 09:00:22

Mleader ;;; vla-put-???

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

Lee Mac 发表于 2022-7-6 09:39:26

(setvar 'CMLEADERSTYLE )
 
Or, if you really (and unnecessarily) wanted to use VL:
 

(vla-setvariable   (vla-get-activedocument (vlax-get-acad-object))   "CMLEADERSTYLE"   (vlax-make-variant "YourStyleHere" vlax-vbstring))

Lee Roy 发表于 2022-7-6 09:57:13

Thanks Lee. I dunno why I didn't think of the SetVar, it serves my purpose perfectly.
 
Thanks!

Lee Mac 发表于 2022-7-6 10:18:57

You're welcome!
页: [1]
查看完整版本: Mleader ;;; vla-put-???