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
Script
Restore Imported Objects Wirecolor
By barigazy · Credited author: Branko Živković · 2013-04-11
- Version
- v1.0
- Version requirement
- 2010+
- Date updated
- 2013-04-11
- Votes
- 1
Description
Additional Info
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 (2)
Thanks
joe8104 · 2013-04-12
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.
barigazy · 2013-04-12
Thanks for the comment.
Jamie explain long step by step process and I just throw easy way.
Cheers!