@jim said:
Hi NewOne,
Use an InputPoint if you need inferencing; and see the linetool.rb in the Plugins/Examples folder for an example.
Hopefully someone who knows the tricks for using InputPoints can fill in more about using one.
That's where I started, but everything is confusing... That example tries to explain something, but in the end i'm even more confused.
Why are used three InputPoints when, for drawing a line two points are needed? -here is a part of code
def activate
@ip1 = Sketchup;;InputPoint.new
@ip2 = Sketchup;;InputPoint.new
@ip = Sketchup;;InputPoint.new
@drawn = false
Sketchup;;set_status_text $exStrings.GetString("Length"), SB_VCB_LABEL
self.reset(nil)
end
Ok, this is not about my principal question, but one of dizzy things in that script.
And I could not figure out where is the inferencing at point, just the constrain modifier key inference... that's why I thought the inferencing at point is an automatic behaviour and appears just when the tool makes a drawing.