Continuing the discussion from LineTool example:
Also in the descriptive text of “linetool.rb”, it states:
“You should also look at the TrackMouseTool defined in utilities.rb for an example of a simpler tool.”
(You need to download the Utilities Tools example extension separately.)
But there are different ways to “position” objects based upon the object type, and where it is coming from. It would be best to be a bit more specific.
Is the object in the selection set ?
Is it a primitive (edge or face) ?
Is it a component that is not yet in the model ?
Is it a group or component instance, whose definition is already present in the definition list ?
Will it move the object, or insert another instance, or a new unique copy ?