Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can't get MLeader's arrow heads and leader lines to change color via LISP, ones created via the default "MLD" command. I am using the following command below to change everything to by layer. Referencing http://entercad.ru/acadauto.en/idh_mleader_object.htm, it says "The color of the leader line and arrowhead is controlled by the Color property, or by the DIMCLRD system variable.", yet the vlax-put-property color doesn't seem to be catching the heads/leader lines properly. I also tried adding the properties "LeaderLineColor" and "TrueColor" but neither attempt worked. Any ideas would be appreciated, thanks!
(defun All2BL () (vlax-for block (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) (vlax-for obj block (if (wcmatch (vla-get-objectname obj) "AcDb*Dimension,AcDb*Leader") (progn (foreach prop '(Color DimensionLineColor ExtensionLineColor TextColor) (vl-catch-all-apply 'vlax-put-property (list obj prop acbylayer)) ) ) (progn (vl-catch-all-apply 'vla-put-color (list obj acbylayer)) ) ) ) ) )
Solved! Go to Solution.