I’ve created a command line file that is read through the Tools/Commands/Read from File menus.
The file plots points as spheres (with the names as text) and lines between some of the points.
Is it possible to change the colour being used for plotting part the way through running the file? Do I have to create a new layer each time? Prefer not to as there may be hundreds of lines.
In AutoCAD I would do this by changing the layers color through a script command.
How about this: -Layer Current "Layer 01"
Notice how the layername is inside double quotes to be able to pass layernames with spaces in them, for else a space will be interpreted as an Enter.
You can select the last created object by _SelLast
Just put it in your command file after the command that builds the line and before the commands that set its colour.
… Maybe … before _SelLast you can insert _SelNone , to be sure that no other object is selected when the colour changing command will run