• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

How to use lock_inference ?

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 194 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 18 Mar 2009, 14:58

    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
    • C Offline
      Chris Fullmer
      last edited by 18 Mar 2009, 15:43

      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
      1 / 1
      • First post
        1/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement