Revolve

Description

The Type utilized in the Bcc.CADOperation function to create a revolved NURB body from an input chain and a revolve axis.

Parameters

In addition to the standard Bcc.CADOperation inputs, the following keys apply specifically to the Type="Revolve"

  • RevolveCurve - A ChainList of entities which will define the revolved shape
  • RotationAngle - double value representing the angle to revolve the chain in degrees
  • RotationAxisOrigin - table value containing the X,Y,Z position of the rotation axis vector origin
  • RotationAxisDirection - a table value containing the X,Y,Z directions of the rotation axis vector
  • IsWithCaps - optional boolean value on whether planar surfaces should be created to cap the ends of a revolve with a closed chain.  Default value of true if this key is excluded.

Return

Returns a list of each entity ID for the entities that are created in the BobCAD database.

Example


-- Get the selected entities in the workspace

selectedIDs = Bcc.GetSelectedEntities(true)


-- Perform an extrude on the user selected chain

entIDList = Bcc.CADOperation({CmdName="My Revolve", Type="Revolve", RevolveCurve=selectedIDs, RotationAngle=180, RotationAxisOrigin={0,0,0}, RotationAxisDirection={1,0,0}, IsWithCaps=true})