Use this Function to sweep the profile in the specified sketch along a path
HRESULT CreateSweep(ISketch *profileSketch,ISketch *pathSketch,long materialStatus,CString sweepName,ISweep **psweep) ;
profileSketch
The Sketch that contains Lines representing the profile for Sweep.
pathSketch
The Sketch that contains Lines representing the path for the Sweep.
materialStatus
The type of Operation to be performed.
sweepName
The name of sweep feature.
Output Parameters
The created Sweep object.
Description
This function performs the sweep of the given profile sketch along the 'pathSketch'. . The Sweep is added to the set of Operations in the Design.
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
Note: The solid(s) created by the Sweep object are referred
to as "tool" and the solids present in the existing Design are referred
to as "blank" in the above table.