I’m building an EXTENSION that automatically builds boxes.
Thankfully, the first plug-in was able to implement a box by entering coordinate values at one point by applying a plug-in made by a creator called ‘mat666’ (using onLbuttondown)
However, I realized that making it through one point is difficult to cope with multiple angles from the axis, and I am trying to make a plug-in using two points. I’ve been using @case through various explanations, but I’m still having a lot of difficulties. can i get some help?
def onLButtonDown(flags, x, y, view)
@ip1.pick view, x, y
if( @ip1.valid? )
self.create_geometry(@ip1.position,view) ##errpr
self.reset(view)
end
view.lock_inference
end