Use this Function to Revolve a profile in the specified sketch about an axis
HRESULT CreateRevolution(ISketch *profileSketch,ISketch *axisSketch,double revolutionAngle,long revolutionDirection,long side,long materialStatus,CString revolutionName,IRevolution **pRevolution);
profileSketch
The Sketch that contains Lines representing the profile for Revolution.
axisSketch
The Sketch that contains Lines representing the axis of Revolution.
revolutionAngle
The angle of Revolution in degrees.
revolutionDirection
The direction of Revolution. (Above,Below,Symmetric about workplane )
side
The side of an open profile.
materialStatus
The type of Operation to be performed. (Add,Subtract,Intersect material
)
revolutionName
The revolution feature name.
Output Parameters
The created Revolution object.
Description
This function creates a Revolution object. The Revolution is added to the set of Operations in the Design. Direction of Revolution with respect to workplane of the profile sketch can be either
Above
0
Below
1
Symmetric 2
Open profiles can also be revolved. The direction of side of the open profile needs to be specified as either
Inside
0
Outside 1.
Following types of Operation are supported:
unite
Union of the tool and the balnk.
0
subtract Difference of the tool
from the balnk. 1
intersect Intersection of the
tool with the balnk. 2