DrawPrimitiveTool

Introduced

v1.0

Categories

modeling drawing

Description

Creates primitives at the positions picked by the user.

Scripting Syntax

DrawPrimitiveTool( PresetObj, GeometryType, [Name], [Parent] );

Parameters

Parameter Type Description
PresetObj String or a preset object (see SIGetPreset) The name of a geometry primitive preset. See Geometry Primitives for a list of supported preset names.
GeometryType String Required geometry type.

Possible Values:

Description:

NurbsCurve
NurbsSurface
MeshSurface
Name String Base name of new primitives
Parent String Name of an existing object to use as the parent of the new primitives.

Examples

1. VBScript Example

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
'Activate.  Click to create NURBS discs with default name under scene root
DrawPrimitiveTool"Disc", "NurbsSurface"

2. VBScript Example

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
CreatePrim "Sphere", "MeshSurface"
'Activate. Click to create NURBS discs with name prefix MyDisc
'Each new primitive is parented under the object named sphere.
DrawPrimitiveTool"Disc", "NurbsSurface", "MyDisc", "sphere"

3. VBScript Example

'This example shows how to activate the interactive command DrawPrimitiveTool
newscene
CreatePrim "Sphere", "MeshSurface"
'Activate.  Click to create NURBS discs with default name under sphere object
DrawPrimitiveTool"Disc", "NurbsSurface",,"sphere"

See Also

DrawImplicitPrimitiveTool