Hi Frederick,
re:
> But what is generating the prompt?
It's the call to GetObjects().
The object picker will only target preselected objects if the selection happened before the command started.
Since you want to automatically select stuff instead of having the user pick them you probably don't want to use the object picker there at all.
Instead of calling GetObjects() you could call moi.geometryDatabase.getSelectedObjects(); and to wait at the prompt you could call WaitForDialogDone() instead of GetObjects().
> The .HTM file - that provides a user interface if needed?
Yes the .htm file has the UI for the command which will be loaded into the command options area in the upper right of the main window.
> Is it required?
No, if the command doesn't want to show any UI there the .htm file can be omitted.
> What invokes that file?
It's part of the "command" infrastructure. When you run a command if there is an .htm file present it will get loaded into the command options area before the .js code is run.
> Can you use that file to collect input and feed it into the script?
Yes you can put controls in the .htm and the script can access them.
- Michael
|