
Originally Posted by
comcu
Rocheey,
Thank you for the explanation. You didn’t mention mlinestyle? I see from help that it is read only?
I tried
Code:
MyObjMLine.stylename = “MLineStyleName”
And it returned an error. Does this mean it can not be changed with vba and you have to do it manually?
Cheers,
Col
Col, please, take a look at the Help always:
From Help
StyleName
For the MLine object, this property is read-only
To set desired MlineStyle use:
Code:
ThisDrawing.SetVariable "CMLSTYLE", "MyStyleName" '<--style name
the same things with scale and justification:
Code:
ThisDrawing.SetVariable "CMLSCALE", 10.0 <--scale
ThisDrawing.SetVariable "CMLJUST", 1 '<--justification to middle
After that you can draw multiline with desired parameters
~'J'~
Bookmarks