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
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.