mlstyle dialoque box transparent, while mline command

mlstyle dialoque box transparent, while mline command

coolkris
Advocate Advocate
1,094 Views
6 Replies
Message 1 of 7

mlstyle dialoque box transparent, while mline command

coolkris
Advocate
Advocate

Dear all,

 

I need mlstyle dialoque box after I started mline command to set style and scale. Any lisp available please share.

 

Thanks

 

Krish

 

0 Likes
Accepted solutions (3)
1,095 Views
6 Replies
Replies (6)
Message 2 of 7

ВeekeeCZ
Consultant
Consultant
Accepted solution

Only way we could make it 'transparent' is in a fashion that you will start the command with dialog and then, after the setting, you will directly continue in a drawing. Basically we just put MLSTYLE and MLINE commands in a sequence.

 

You could do that either using a menu macro:

^c^cmlstyle;mline

or LISP

(defun c:MLINES ()
  (command "_.mlstyle" "_.mline")
  (princ)
  )

Only benefit of using a LISP is that LISP allows you do an easy repetition by <enter> or RT click.

0 Likes
Message 3 of 7

coolkris
Advocate
Advocate

thanks a lot, whether we can have multiple "mline styles" in single acad.mln etc. or each mlinestyles to be in separate .mln for each mlstyle.

 

 

0 Likes
Message 4 of 7

ВeekeeCZ
Consultant
Consultant

I have non experience with mline definition, but HELP says this:

 

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 to a multiline library (MLN) file. If you specify an MLN file that already exists, the new style definition is added to the file and existing definitions are not erased.

 

0 Likes
Message 5 of 7

Sea-Haven
Mentor
Mentor
Accepted solution

There should be a var for "current mlstyle" same with scale.

 

CMLJUST          0
CMLSCALE         1"
CMLSTYLE         "STANDARD"

 

Just make a defun setting vars.

0 Likes
Message 6 of 7

coolkris
Advocate
Advocate

Dear all,

Please find attached autocad file, where have multiple mline styles created but to save in single *.lin. only latest .lin is saved.

 

Thanks

 Krish

Message 7 of 7

cadffm
Consultant
Consultant
Accepted solution

*.lin file has nothing to do with the MultiLine-Styles, just with the used linetypes in your style.

If you like to save ML styles, export each style one by one and put the files together,

the file extension is MLN.

 

Your styles using CENTER and HIDDEN Linetypes, both are standard-linetypes (from acad.lin),

so you don't need to save the linetypes extra.

 

Just

Command: _MLSTYLE [EXPORT]

and the copy the contents of multiple files to one file.

By hand with Text EDITOR or 

[CTRL]+[R] -> CMD

copy D:\*.mln D:\MyFavs.mln

Sebastian

0 Likes