Public Member Functions | Public Attributes

MLSolidWorksFeatureManager Class Reference

MLSolidWorksFeatureManager impliments the IFeatureManager interface of the SolidWorks API. More...

#include <+SolidWorks/MLSolidWorksFeatureManager.h>

Inheritance diagram for MLSolidWorksFeatureManager:
Inheritance graph
[legend]
Collaboration diagram for MLSolidWorksFeatureManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

function MLSolidWorksFeatureManager (in rawIFMgrPointer)
 Class constructor.
function FeatureCut (in obj, in Sd, in Flip, in Dir, in T1, in T2, in D1, in D2, in Dchk1, in Dchk2, in Ddir1, in Ddir2, in Dang1, in Dang2, in OffsetReverse1, in OffsetReverse2, in TranslateSurface1, in TranslateSurface2, in NormalCut, in UseFeatScope, in UseAutoSelect)
 Creates a cut extrude feature.
function FeatureExtrude (in obj, in Sd, in Flip, in Dir, in T1, in T2, in D1, in D2, in Dchk1, in Dchk2, in Ddir1, in Ddir2, in Dang1, in Dang2, in OffsetReverse1, in OffsetReverse2, in TranslateSurface1, in TranslateSurface2, in Merge, in UseFeatScope, in UseAutoSelect, in T0, in StartOffset, in FlipStartOffset)
 Use it to freate a Extrude feature.

Public Attributes

 m_CADRawPointer

Detailed Description

MLSolidWorksFeatureManager impliments the IFeatureManager interface of the SolidWorks API.


Constructor & Destructor Documentation

function MLSolidWorksFeatureManager ( in  rawIFMgrPointer )

Class constructor.

Parameters:
rawIFMgrPointeris the COM pointer to the IFeatureManager object.

Member Function Documentation

function FeatureCut ( in  obj,
in  Sd,
in  Flip,
in  Dir,
in  T1,
in  T2,
in  D1,
in  D2,
in  Dchk1,
in  Dchk2,
in  Ddir1,
in  Ddir2,
in  Dang1,
in  Dang2,
in  OffsetReverse1,
in  OffsetReverse2,
in  TranslateSurface1,
in  TranslateSurface2,
in  NormalCut,
in  UseFeatScope,
in  UseAutoSelect 
)

Creates a cut extrude feature.

Parameters:
objis the instance if the object calling and is implicit.
SdTrue for single-ended, false for double-ended
FlipFlip to side cut; True if you want to remove material outside of the profile, false if not
DirReverse direction; True if you want Direction 1 to be opposite of the default direction (see Remarks)
T1Termination type for first end as defined in swEndConditions_e
T2Termination type for second end as defined in swEndConditions_e
D1Depth of extrusion for first end in meters
D2Depth of extrusion for second end in meters
Dchk1True allows draft angle in first direction, false does not allow drafting
Dchk2True allows draft angle in second direction, false does not allow drafting
Ddir1True for first draft angle to be inward, false to be outward
Ddir2True for second draft angle to be inward, false be outward
Dang1Draft angle for first end
Dang2Draft angle for second end
OffsetReverse1If you chose to offset the first end condition from another face or plane, then True specifies offset in direction away from the sketch, false specifies offset from the face or plane in a direction toward the sketch
OffsetReverse2If you chose to offset the second end condition from another face or plane, then True specifies offset in direction away from the sketch, false specifies offset from the face or plane in a direction toward the sketch
TranslateSurface1When you choose swEndcondOffsetFromSurface as the termination type for the first end, then True specifies that the end of the extrusion is a translation of the reference surface, false specifies to use a true offset
TranslateSurface2When you choose swEndcondOffsetFromSurface as the termination type for the second end, then True specifies that the end of the extrusion is a translation of the reference surface, false specifies to use a true offset
NormalCutTrue ensures that the cut is created normal to the sheet metal thickness, false does not (this argument applies only to sheet metal parts, use false for non-sheet metal parts)
UseFeatScopeTrue if the feature only affects selected bodies or components, false if the feature affects all bodies or components
UseAutoSelectTrue to automatically select all bodies or components and have the feature affect those bodies or components, false to select the bodies or components the feature affects (see Remarks)
Return values:
IFeatureHandle to the IFeature object
Remarks - The default direction for cut operations are opposite the sketch normal.
The default direction for boss operations is along the sketch normal. Setting the direction arguments to true reverse the default direction. For double-ended extrusions, Direction 2 is always opposite to Direction 1.

The default sketch normal is the same as the face or plane normal where the sketch was placed. To determine this normal vector, see IFace2::Normal and IRefPlane::Transform, respectively. When UseAutoSelect is false, then the user must select the bodies that the feature will affect.

When using cut or cavity features that result in multiple bodies, you cannot select to keep all of the resulting bodies or one or more selected bodies.

function FeatureExtrude ( in  obj,
in  Sd,
in  Flip,
in  Dir,
in  T1,
in  T2,
in  D1,
in  D2,
in  Dchk1,
in  Dchk2,
in  Ddir1,
in  Ddir2,
in  Dang1,
in  Dang2,
in  OffsetReverse1,
in  OffsetReverse2,
in  TranslateSurface1,
in  TranslateSurface2,
in  Merge,
in  UseFeatScope,
in  UseAutoSelect,
in  T0,
in  StartOffset,
in  FlipStartOffset 
)

Use it to freate a Extrude feature.

The parameters are as follows:

Parameters:
objis the instance if the object calling and is implicit.
SdTrue for single ended, false for double ended
FlipTrue to flip the direction to extrude
DirTrue to flip the direction to extrude
T1Termination type for first end as defined in swEndConditions_e
T2Termination type for second end as defined in swEndConditions_e
D1Depth of extrusion for first end in meters
D2Depth of extrusion for second end in me
Dchk1True allows draft angle in first direction, false does not allow drafting
Dchk2True allows draft angle in second direction, false does not allow drafting
Ddir1True for first draft angle to be inward, false to be outward
Ddir2True for second draft angle to be inward, false to be outward
Dang1Draft angle for first end
Dang2Draft angle for second end
OffsetReverse1If you chose to offset the first end condition from another face or plane, then True specifies offset in direction away from the sketch, false specifies offset from the face or plane in direction toward the sketch
OffsetReverse2If you chose to offset the second end condition from another face or plane, then True specifies offset in direction away from the sketch, false specifies offset from the face or plane in direction toward the sketch
TranslateSurface1When you choose swEndcondOffsetFromSurface as the termination type for the first end, then True specifies that the end of the extrusion is a translation of the reference surface, false specifies to use a true offset
TranslateSurface2When you choose swEndcondOffsetFromSurface as the termination type for the second end, then True specifies that the end of the extrusion is a translation of the reference surface, false specifies to use a true offset
MergeTrue to merge the results in a multibody part, false to not
UseFeatScopeTrue if the feature only affects selected bodies, false if the feature affects all bodi
UseAutoSelectTrue to automatically select all bodies and have the feature affect those bodies, false to select the bodies the feature affects (see Remarks)
T0Start condition as defined in swStartConditions_e
StartOffsetIf t0 set to swStartOffset, then specify offset value
FlipStartOffsetIf t0 set to swStartOffset, then True to flip the direction or false to not
Return values:
IFeaturePointer to the IFeature object
Remarks
  • The default direction for cut operations is opposite the sketch normal. The default direction for boss operations is along the sketch normal. Setting the Dir argument to True reverses the default direction. For double-ended extrusions, Direction 2 is always opposite of Direction 1.

Member Data Documentation

m_CADRawPointer [inherited]

The documentation for this class was generated from the following file: