How to Change a multi line element from one mlstyle to another?

How to Change a multi line element from one mlstyle to another?

Anonymous
Not applicable
1,227 Views
3 Replies
Message 1 of 4

How to Change a multi line element from one mlstyle to another?

Anonymous
Not applicable

Hai everyone!

 

Please help me to resolve the following.

 

I have a multilines in my DWG with the mlstyle name of UB305. I want to change this mline with mlstyle name UB203.

 

I knew that this is not working in acad. Is there any solution resolve this from background? If the answer is yes, then the mline would have been used to greater extent for our projects.

0 Likes
Accepted solutions (1)
1,228 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant

Are you using full AutoCAD? I guess it could be written a lisp for that. If so.. post a simple sample dwg. You want to change a style of single segment or a whole mline?

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hai Beekeecz,

 

Thanks for your reply. Sorry I am unable to send you the DWG due to confidentiallity.

 

Yes we are using full acad to prepare offshore structural framing plan drawings. I have a several Mlines styles in my dwg to draw a structural beams. We created a lisp to call the mline styles.

 

At any point of time, I want to change the beam sizes from one to another. Could you please suggest, how to write a lisp for that?

 

Also, l suggest autodesk to include this option foreground in their next version.

0 Likes
Message 4 of 4

ВeekeeCZ
Consultant
Consultant
Accepted solution

I'm pretty sure that nobody would kill you for posting a small cut out of your drawing. But anyway... as I understood correctly you need replace a style of one segment of a MLINE.


Maybe something simple...
- select mline with entsel
- find closest vertices (pt1 and pt2) to the point given by entsel (make sure on different sides)
- extract all vertices from the old mline (pt 10 and all pts 11)
- with old mlstyle redraw mline (command) from start till the break (pt1) and the second one from break (pt2) till the end
- with new mlstyle redraw skipped segment
- all new mlines inherit properties from the old one (layer, lt, color...)

0 Likes