[Plugin] Layer Zero Fixup Tools

[Plugin] Layer Zero Fixup Tools

Postby slbaumgartner » Mon Jan 02, 2012 4:52 pm

The attached ruby adds two context menu items when you select a Group or ComponentInstance. These are intended as quick fixups for when you accidentally get Faces and Edges onto layers other than Layer0 and cause confusing visibility issues with the Groups and Components that use them. A prime culprit in creating this situation is the default explode command, which puts all the exploded parts onto the layer of the container, even if they were originally on Layer0. The first added context menu item, Explode to Layer0, modifies this behavior to put Faces and Edges onto Layer0. The second added context menu item, Primitives to Layer0, recursively descends through all nested contents of the selection and puts all Faces and Edges on Layer0 without exploding anything. This is the quick fixup when you can't remember what you did to create the mess.
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Layer Zero Fixup Tools

Postby dtrarch » Mon Jan 02, 2012 11:43 pm

Hi slbaumgartner
We the messy thank you :berserk:
Great idea :thumb: :enlight:

Cheers

dtr
0

dtrarch 
Premium Member
Premium Member
 

Re: [Plugin] Layer Zero Fixup Tools

Postby ken » Tue Jan 03, 2012 1:10 am

Well I could move this to the "DUH" thread. I did not realize that happen when I exploded a named group. It explains a lot of the mystery to me on how some primitive got to another layer besides "O".

Thanks for the Plugin.

Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: [Plugin] Layer Zero Fixup Tools

Postby Bob James » Tue Jan 03, 2012 9:16 pm

That'a a "duh" for me too, Ken.
Thanks for the tool, slbaumgartner, it'll get a lot of use.
0
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Layer Zero Fixup Tools

Postby TIG » Tue Jan 03, 2012 9:29 pm

Thanks, good idea.

Tip: you can avoid all of the 'Layer0' coding/tests by using
ent.layer=nil
which gives 'ent' the default-layer, irrespective of the default-layer's name or where it is in the model.layers list...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Layer Zero Fixup Tools

Postby Ben Ritter » Tue Jan 03, 2012 9:33 pm

Thank you for sharing.
0

Ben Ritter 
 

Re: [Plugin] Layer Zero Fixup Tools

Postby slbaumgartner » Wed Jan 04, 2012 3:07 am

TIG wrote:Thanks, good idea.

Tip: you can avoid all of the 'Layer0' coding/tests by using
ent.layer=nil
which gives 'ent' the default-layer, irrespective of the default-layer's name or where it is in the model.layers list...


Absolutely right! I discovered that reading other threads here after I posted the original. The version here uses that fix.

Steve
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Layer Zero Fixup Tools

Postby irwanwr » Fri Jan 13, 2012 6:36 pm

quite similar with the Default Layer Geometry main purpose then?
0
User avatar
irwanwr 
 

Re: [Another "layer0" plugin

Postby Matt666 » Mon Jan 30, 2012 6:57 pm

I wrote a plugin some time ago that do the same thing, and you can choose entities you want to "normalize", and if the script has to analyze nested entities.
Sans titre 1.jpg

i post it here, if someone finds it useful.
;)
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Another "layer0" plugin

Postby irwanwr » Tue Jan 31, 2012 6:55 pm

Matt666 wrote:I wrote a plugin some time ago that do the same thing, and you can choose entities you want to "normalize", and if the script has to analyze nested entities.
Sans titre 1.jpg

i post it here, if someone finds it useful.
;)

it looks like TT CleanUp
interesting. thank you :thumb:
0
User avatar
irwanwr 
 

Re: [Plugin] Layer Zero Fixup Tools

Postby JClements » Tue Jan 31, 2012 8:51 pm

Here are links to PutOnLayer
http://rhin.crai.archi.fr/rld/plugin_details.php?id=315

And PutOnCurrentLayer
http://rhin.crai.archi.fr/rld/plugin_details.php?id=312

Both were originated by Chris Grant.

I combined the two into one.

I use them religiously when importing components or cutting and pasting geometry from other models or when importing DWG files.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Layer Zero Fixup Tools

Postby Bob James » Wed Mar 19, 2014 8:21 am



JClements wrote:I combined the two into one.


Where :?:
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: fredo6, tumhil and 32 guests

Visit our sponsors: