Additions to the sample Box.rb
-
I have with, help here modified, the sample box.rb to make the box a component and make a new hidden layer with the component name as part of the layer name. Now I would like to move the component's visibility to the new named layer as I always leave layer0 as the active layer. I thought the layer_name_from_component.rb was also going to include that move but it stoped at creating the layer.
Thanks
Keith -
Maybe this?
-
Keith, it sounds like it should be easy enough to do what yuou want, but you lost me. I'm not quite sure what your asking for. You want to make the new layer invisible? Or make the component invisible? I'm not sure what you mean by "move the component's visibility to the new named layer as I always leave layer0 as the active layer".
Chris
-
As I understand SU when I leave layer0 as the active layer then all of the components details or drawing information remains on layer0 and moving it to a new layer via the "I" information form only affects the visibility of the component. So that is what I want to do the same as if I selected the component pressed "I" and changed the layer to new layer I just created. I hesitated to use the term move the component to the new layer as I understand that is not really what happens.
My layer management plan for woodworking projects is such that each part is made a component and has a Assembly layer (A01TableTop) and a part layer for the dimensioned drawing (P01TableTop). I also have an Assembly Scene that makes all the parts in the assembled position visible. My box.rb now creates these layers as hidden so they don't show up in scenes where they are not wanted.
In a perfect world for me box.rb would also:
1.Place the first instance of the component on the new named assy layer.
2.Place a copy or second instance of the component on the new named part layer.
3.Add the assembly layer to the Assembly Scene.Thanks
Keith
Advertisement