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

    Multi-Point Tool

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 1.1k 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.
    • medeekM Offline
      medeek
      last edited by

      I'm working on a new tool for the foundation plugin (http://design.medeek.com/resources/medeekfoundationplugin.html) that allows the user to select a single point for positioning a simple spread/pad footing.

      Under regular usage the user will select the point and then the tool will draw the footing (rebar, post, pedestal etc...) This is fairly straight forward for me to code.

      What I would like to do is make it possible to hold down the control key or some other key while selecting the point to position the footing, thereby the allowing the user to select multiple points. The footing component (assembly) instance will then be created at each location.

      Is such a thing possible?

      Nathaniel P. Wilkerson PE
      Medeek Engineering Inc
      design.medeek.com

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        @medeek said:

        What I would like to do is make it possible to hold down the control key or some other key while selecting the point to position the footing, thereby the allowing the user to select multiple points.

        (As said also in the other forum...)

        The convention for SketchUp is that the CTRL key acts as a toggle in and out of copy mode. (This is why the API defines the constants as COPY_MODIFIER_KEY and COPY_MODIFIER_MASK.

        Examine how the SelectionTool switches in and out of add or subtract mode, and the cursor changes to show + or - satellite icons. Or the MoveTool, ... etc.

        Also see this other thread here at SCF:
        http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=67837#p621579


        You'll need to decide how to let the user tell the tool when they are done picking points.

        Another convention is that the ESC key resets the tool to it's initial state, or cancels the current state. (See the onCancel callback.)

        The ENTER is another way, detected via a onReturn or onKeyUp callback.

        I'm not here much anymore.

        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