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

    How to use lock_inference ?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 195 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.
    • N Offline
      NewOne
      last edited by

      I'm working on a tool. For now is something like LineTool, but I want to force it to draw just parallel to global axis. I know I must use lock_inference for this. But there are two optional parameters (inputpoint) and I don't really understand too much from this http://code.google.com/intl/ro/apis/sketchup/docs/ourdoc/view.html#lock_inference
      Can somebody give me a clue?
      Thanks.

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

        You need to have an inputpoint for inference to work. Check out the InputPoint class for how that works. That's about all I can say. I am currently working on inputpoints too, and its going slowly.

        There is a good example in the utilities directory. Open utilitiestools.rb and look at the TrackMouseTool in there. It is found in Tools>Utilities>Query Tool inside of Sketchup. It uses inference points. It seems more complex than I thought it should be, but it definitely works.

        Chris

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

        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