Restore Imported Objects Wirecolor
A little fix code for imported objects from AutoCAD. Inspired by this post
http://jamiecardoso-mentalray.blogspot.co.uk/2013/04/correcting-viewport... by Jamie Cardoso
callbacks.removeScripts id:#rw
fn restoreWirecolor =
(
undo off with redraw off
(
for o in objects where o.colorByLayer do
(
o.colorByLayer = off ; o.wirecolor = o.layer.wirecolor
)
)
)
callbacks.addScript #fileLinkPostAttach "restoreWirecolor()" id:#rw
callbacks.addScript #postImport "restoreWirecolor()" id:#rw
Save this code as *.ms and place it inside MAXROOT > Scripts > Starup folder.
Also on above link (post) you can find another tool [*Attach And Weld By Wirecolor*] related to this topic and requested
by Wilian Miler.
Comments
...
Thanks for the comment.
Jamie explain long step by step process and I just throw easy way.
Cheers!
bga
Thanks
Thank you,
This little piece of code is working great. When I read Jamie Cardoso`s article didn`t understand quite well how to do this, but your info is very simple and easy to do.