ExecuteCmd support -
More
information
Command
|
Parameters
|
Return values
|
Comments
|
Add |
Object=<type>;Name=<name>;Value=<val>;Precision=<val>;Unit=<val> |
ok,None |
adds data to the tool given by the type parameter.
Valid type :
'Scalar', 'Point', 'Line', 'Text', 'Logic', 'Point3D', 'Line3D', 'Circle',
'Sphere3D', 'Plane3D'.
if <name> already exist the command fails.
The Value parameter is optional
|
Example 1, generate 24 point results
def init(self):
# use self.name to get this tool instance
# tool=GetTool(self.name)
tool=GetTool(self.name)
for i in range(1,25):
tool.executeCmd('add','object=point;name=P%i'%i)
|