View Single Post
Old 10th January 2018, 02:38 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: Creating objects in TCL script

There are no internal commands to create objects and add vertices and surfaces.

There is an old linecom plugin that comes with AC3D. From Help->about-plugins:

Code:
Line command plugin - Version 1.0 by Inivis

This plugin adds internal commands to AC3D.  Commands can be called from outside AC3D using various methods - see the SDK for more info.
commands added are:
line - start a line,
point <x> <y> <z> - add a point to the line
end - finish adding the line

note that you'll need to send the redraw_all command to make AC3D show the line that's been added.
I haven't tried it for a while so it may not still work but if it does, you could possibly use it. If you would like the source code for the plugin, let me know.
Andy is offline   Reply With Quote