sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Additions to the sample Box.rb

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 182 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      ktkoh
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Maybe this?

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          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

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • K Offline
            ktkoh
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement