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

    Lock and unlocking

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 312 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.
    • kenK Offline
      ken
      last edited by

      Is it possible that when you lock a group/component to just lock out the ability to re-size the group/component but still leave the ability to move the locked component. I wish to lock a part made, not have that the part's size change, however, be able to move the part for adjustment in location.

      Thank you in advance.

      Ken

      Fight like your the third monkey on Noah's Ark gangway.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        For components you can use the Dynamic Component editor to disable the scale handles.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

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

          If you want to use thomthom's idea of hiding the handles, my Simple Scale Handles plugin can be easily modified to hide them all. And it would work for groups, too.

          You can test it out with these one liners, in the ruby console. Have the component/group selected:

          For Groups:

          Sketchup.active_model.selection[0].entities.parent.behavior.no_scale_mask=127
          

          For Components:

          Sketchup.active_model.selection[0].definition.behavior.no_scale_mask=127
          

          Set the value back to zero, to undo.

          1 Reply Last reply Reply Quote 0
          • kenK Offline
            ken
            last edited by

            thomthom and kyyu

            Thank you for you input. My problem, and I will admit it is bad modeling on my part, I will make a sub-assembly that may have from 2 to 15 separate parts. I save this as a sub-assembly. Now as I continue with the overall project, somewhere in my drilling down to make a modification, I may unintentionally drill into a sub-assembly that I didn't intend to modify the interior sub-parts, and may unintentionally move a sub-part a small distance one direction or another. This movement does not become evident until I start to make ACAD drawings, then I see that what should have been identically measurement as slightly off.( off by more than 1/64 which I believe is the tolerance of Sketchup.)

            Locking will prevent this problem, but locking prevents me from moving or adjusting the location of the assemblies.

            Well in trying to define my problem I found my solution. I have been locking the assemblies at the outer most grouping, which prevents any movement. I locked at the outer group so I only needed to unlock one group to make changes, leaving the inner groups not locked. However, I noticed if I leave the inner sub-assemblies unlock, make a group of all the sub-assemblies. Than add one small line to this group, make another group of the first group and the small additional line. Then open the top group up, lock inner the group, which does not include the small line, with all the sub-assemblies, than close the outer group, I can move the whole grouping which is unlocked, which allows moving all the sub-assemblies, and I am prevented from moving the sub-assemblies in the inner group.

            So just by watching how I make my group and where I lock all the sub-assemblies I get what I want.

            However, being able to determine what is locked and not locked would help also, but I found my work around.

            So thomthom and kyyu thank you for your help. Thomthom, I am going to look further into the Dynamic Component editor, never thought of this as having a solution.

            Again thanks

            Fight like your the third monkey on Noah's Ark gangway.

            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