Help to Modify Linexp.lsp to keep Layer, Color, line weight and Line Type

Help to Modify Linexp.lsp to keep Layer, Color, line weight and Line Type

Anonymous
Not applicable
4,310 Views
25 Replies
Message 1 of 26

Help to Modify Linexp.lsp to keep Layer, Color, line weight and Line Type

Anonymous
Not applicable

Hi again Family 🙂

I need some help with the Linexp.lsp. when exploded, It changes the custom Lines to color White and changes line weight to 0.00.

Is there a way to retain the original types when using Linexp.lsp?

The Line that i Linexp should stay at: Misc Layer, color bylayer, lineweight bylayer and Linetype name is GUY_CABLE.

Thank you sooooo much for any help if possible 🙂

0 Likes
Accepted solutions (1)
4,311 Views
25 Replies
Replies (25)
Message 21 of 26

Anonymous
Not applicable

Lisp attached

0 Likes
Message 22 of 26

Anonymous
Not applicable

Thank you everyone! I was able to convert macro to Lsp routine. Everything works perfectly thanks to everyone here giving me the support I needed 😊👍

0 Likes
Message 23 of 26

Moshe-A
Mentor
Mentor

@Anonymous  hi,

 

i still think that transfering the shape (shx) file is the better solution. cause the way you handle it force you to 'demage' your drawing which i want to believe you do not want to?!

 

 

 

 

Message 24 of 26

Anonymous
Not applicable
Accepted solution

i agree but the customer has express no interest in accepting the shape file 😞

I was able create a macro that piggybacks off the original Linexp command to set all properties as they should be after exploding is done.

 

here's the lisp routine:

(DEFUN C:xx ()
(C:linexp)
(COMMAND "_CHPROP" "previous" "" "P" "C" "BYLAYER" "LA" "MISC" "LT" "CONTINUOUS" "LW" "BYLAYER" "")
(PRINC)
)

0 Likes
Message 25 of 26

Moshe-A
Mentor
Mentor

@Anonymous ,

 

just thought you might be intersted in this:

AutoCAD has a beautiful command (long time ago) called SETBYLAYER, it sets everything (or only selected objects) to be bylayer - try it 😀 

 

Moshe

 

Message 26 of 26

Anonymous
Not applicable

Good Morning @Moshe-A 🙂

Can you help with this? or maybe shoot me into the right direction. i created a post but wasnt sure if that was the correct forum to post in. Can you take a look please. i need some help with a lisp modification

Thank you sir!

 

Post is here:

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-to-modify-polyinfo-lsp/td-p/900...

 

0 Likes