sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Prevent deleting "marked" cpoints/guides ? How?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 147 Views 2 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.
    • dereiD Offline
      derei
      last edited by

      I often use cpoints and guide lines in my components as references, grip points, rotation axes and so on... so I would like to prevent them to be deleted by accident.

      Some time ago, I tried to make a tool that will delete the guides (cpoints, clines) on a selective manner.
      I tried to use observers and Attribute Dictionaries, but I failed... it seems that observers are too buggy and don't behave as expected. Or, maybe my judgement was wrong at the time.

      Currently, the problem is that guides are deleted from entire model, so a cpoint inside a component can't be preserved. My thought was to have a tool that will create cpoints/guides and add a dictionary entry to them, like a label. Then, a observer that will prevent deleting the "marked" guides.
      Any ideas/suggestions ?

      DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

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

        You can't prevent an object from being erased. You might be able to recreate it, if you manage to get any info on the erased entity (which is usually garbage by the time the oberser reports it), but you will very likely end up interfering with some other operation.

        Safer and easier might be to create a custom Erase Guides function that will omit your protected guides.
        It would be a useful tool, as I've also experience your frustration many time myself.
        You could use attributes on each entity, or you can use attributes on a layer. Both options would be useful.

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

        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