Restore Imported Objects Wirecolor

1 vote
Version: 
v1.0
Date Updated: 
04/11/2013
Author Name: 
Branko Živković

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

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.

Version Requirement: 
2010+

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

Thanks for the comment.
Jamie explain long step by step process and I just throw easy way.
Cheers!

bga

joe8104's picture

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.