Commandobill Posted July 28, 2009 Posted July 28, 2009 Hey everyone. I've been trying to find a way to find the current mlinestyle. I know how to get a list of all the mline styles but what i would really like to know is how to get the current one. In lisp of course. I looked at all the dxf codes and even tried to get it thru vla. Obviously i could draw an mline in lisp then see which one it used but im trying to avoid that. Hopefully there was just something i missed. If anyone has any clues I would appreciate it. Quote
Lee Mac Posted July 28, 2009 Posted July 28, 2009 I can get the collection using: (vla-item (vla-get-Dictionaries (vla-get-ActiveDocument (vlax-get-acad-object))) "ACAD_MLINESTYLE") But I am also stuck from here. I don't see any Sys Vars, and the above does not help too much Quote
The Buzzard Posted July 28, 2009 Posted July 28, 2009 I can get the collection using: (vla-item (vla-get-Dictionaries (vla-get-ActiveDocument (vlax-get-acad-object))) "ACAD_MLINESTYLE") But I am also stuck from here. I don't see any Sys Vars, and the above does not help too much MLSTYLE which is a command Format menu: Multiline Style Command line: mlstyle Defines the style and properties of multilines. The Multiline Styles dialog box displays multiline style names, makes them current, loads them from a file, and saves, adds, and renames them. You can also create or edit a description of a style. Current Displays and sets the current multiline style. Select a name from the list to make it current. If there are multiple styles, the name of the current style is selected. The list of multiline styles can include externally referenced multiline styles—that is, multiline styles that exist in an externally referenced drawing (xref). AutoCAD displays externally referenced multiline style names using the same syntax it uses for other externally dependent nongraphical objects. See Overview of External References in the User's Guide. Note You cannot edit the element and multiline properties of the STANDARD multiline style or any multiline style that is being used in the drawing. If you try to edit the options in either the Element Properties dialog box or the Multiline Properties dialog box, the options are unavailable. To edit an existing multiline style, you must do so before you draw any multilines in that style. Name Names a new multiline style or renames one. The element and multiline properties are unavailable until you enter a new name and make it current by choosing Add. Enter a name and choose Add, and then save the multiline style to a multiline library (MLN) file. AutoCAD saves the definition in the MLN file you specify. If you specify an MLN file that already exists, the new style definition is added to the file and existing definitions are not erased. The default file name is acad.mln. To rename a style, enter a name and choose Rename. You cannot rename, modify, or delete the default STANDARD multiline style. To make a copy of the current style, enter a name and then choose Save. Multiline style names adhere to the naming conventions for named objects. Description Adds a description to a multiline style. Enter up to 255 characters, including spaces. Load Displays the Load Multiline Styles dialog box, in which you can load multiline styles from a specified MLN file. Save Saves or copies a multiline style. Enter a name and then choose Save. Add Adds the multiline style in Name to the Current list. Rename Renames a multiline style. Enter a name and then choose Rename. Element Properties Displays the Element Properties dialog box. You cannot edit the element properties of an existing multiline style. Multiline Properties Displays the Multiline Properties dialog box. Quote
VVA Posted July 29, 2009 Posted July 29, 2009 I can get the collection using:... I don't see any Sys Vars, and the above does not help too much May be it? CMLSTYLE Quote
Commandobill Posted July 29, 2009 Author Posted July 29, 2009 May be it?CMLSTYLE wow... i thought i tried that. Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.