Hide Table of Contents
GetTypeName2 Method (IFeature)

Gets the type of this feature.

NOTE: To get the underlying type of feature of an Instant3D feature (i.e., "ICE"), call IFeature::GetTypeName; otherwise, call IFeature::GetTypeName2. 

.NET Syntax

Visual Basic (Declaration) 
Function GetTypeName2() As System.String
Visual Basic (Usage) 
Dim instance As IFeature
Dim value As System.String
 
value = instance.GetTypeName2()
C# 
System.string GetTypeName2()
C++/CLI 
System.String^ GetTypeName2(); 

Return Value

String identifying the type of this feature (see Remarks)

Example

Remarks

Use IFeature::GetDefinition to get a feature data object (i.e., an object whose interface name ends in FeatureData or FeatureData2, such as IExtrudeFeatureData2, ILoftFeatureData, ISimpleFilletFeatureData2, IChamferFeatureData2, etc.); otherwise, use IFeature::GetSpecificFeature2 to get an object for a feature.

Type of feature String returned by this method Interface
Assembly ExplodeLineProfileFeature ISketch
InContextFeatHolder IFeature
MateCoincident IMate2
MateConcentric IMate2
MateDistanceDim IMate2
MateInPlace IMate2
MateParallel IMate2
MatePerpendicular IMate2
MatePlanarAngleDim IMate2
MateSymmetric IMate2
MateTangent IMate2
MateWidth IMate2
Reference IMateReference
SmartComponentFeature ISmartComponentFeatureData
Body APattern IFillPatternFeatureData
BaseBody IExtrudeFeatureData2
Bending None (Flex feature)
Blend ILoftFeatureData
BlendCut ILoftFeatureData
Boss IExtrudeFeatureData2
BossThin IExtrudeFeatureData2
Chamfer IChamferFeatureData2
CirPattern ICircularPatternFeatureData
CombineBodies ICombineBodiesFeatureData
CosmeticThread ICosmeticThreadFeatureData
CreateAssemFeat ISaveBodyFeatureData
CurvePattern ICurveDrivenPatternFeatureData
Cut IExtrudeFeatureData2
CutThin IExtrudeFeatureData2
Deform None (Deform feature)
DeleteBody IDeleteBodyFeatureData
DelFace IDeleteFaceFeatureData
DerivedCirPattern IDerivedPatternFeatureData
DerivedLPattern IDerivedPatternFeatureData
DimPattern IDimPatternFeatureData
Dome IDomeFeatureData2
Draft IDraftFeatureData2
EdgeMerge IHealEdgesFeatureData
Emboss IWrapSketchFeatureData
Extrusion IExtrudeFeatureData2
Fillet ISimpleFilletFeatureData2
Helix IHelixFeatureData
HoleSeries IHoleSeriesFeatureData2
HoleWzd IWizardHoleFeatureData2
Imported None (Imported feature)
LocalChainPattern IChainPatternFeatureData
LocalCirPattern ILocalCircularPatternFeatureData
LocalCurvePattern ILocalCurvePatternFeatureData
LocalLPattern ILocalLinearPatternFeatureData
LPattern ILinearPatternFeatureData
MacroFeature IMacroFeatureData
MirrorPattern IMirrorPatternFeatureData
MirrorSolid IMirrorSolidFeatureData
MirrorStock IMirrorPartFeatureData
MoveCopyBody IMoveCopyBodyFeatureData
NetBlend IBoundaryBossFeatureData
Punch IIndentFeatureData
ReplaceFace IReplaceFaceFeatureData
RevCut IRevolveFeatureData2
Round fillet corner ISimpleFilletFeatureData2
Revolution IRevolveFeatureData2
RevolutionThin IRevolveFeatureData2
Rib IRibFeatureData2
Rip IRipFeatureData
Sculpt IIntersectFeatureData
Shape Obsolete
Shell IShellFeatureData
Split ISplitBodyFeatureData for a feature that was created by splitting a part into multiple parts using either IFeatureManager::PostSplitBody or the Split feature in the user interface
SplitBody None; returned for a body created by splitting a part and saving the body to a part; you cannot access the data of a split body saved to a part
Stock IDerivedPartFeatureData
Sweep ISweepFeatureData
SweepCut ISweepFeatureData
TablePattern ITablePatternFeatureData
Thicken IThickenFeatureData
ThickenCut IThickenFeatureData
VarFillet IVariableFilletFeatureData2
Drawing BendTableAchor ITableAnchor
BomFeat IBomFeature
BomTemplate ITableAnchor
DetailCircle IDetailCircle
DrBreakoutSectionLine IDrSection or IBrokenOutSectionFeatureData
DrSectionLine IDrSection
GeneralTableAnchor ITableAnchor
HoleTableAnchor ITableAnchor
LiveSection IRefPlane
PunchTableAnchor ITableAnchor
RevisionTableAnchor ITableAnchor
WeldmentTableAnchor ITableAnchor
WeldTableAnchor ITableAnchor
Folder BlockFolder Obsolete
CommentsFolder ICommentFolder
CosmeticWeldSubFolder ICosmeticWeldBeadFolder
CutListFolder IBodyFolder
FeatSolidBodyFolder IBodyFolder
FeatSurfaceBodyFolder IBodyFolder
FtrFolder IFeatureFolder
InsertedFeatureFolder IFeatureFolder
MateReferenceGroupFolder IFeatureFolder
PosGroupFolder IMateReference
ProfileFtrFolder IFeatureFolder
RefAxisFtrFolder IFeatureFolder
RefPlaneFtrFolder IFeatureFolder
SolidBodyFolder IBodyFolder
SubAtomFolder IBodyFolder if a body
SubWeldFolder IBodyFolder
SurfaceBodyFolder IBodyFolder
TemplateFlatPattern IFlatPatternFolder
Miscellaneous Attribute IAttribute
BlockDef Obsolete
CurveInFile IFreePointCurveFeatureData
GridFeature None (Grid feature)
LibraryFeature ILibraryFeatureData
Scale IScaleFeatureData
Sensor ISensor
ViewBodyFeature Obsolete
Mold Cavity ICavityFeatureData
MoldCoreCavitySolids IToolingSplitFeatureData
MoldPartingGeom IPartingSurfaceFeatureData
MoldPartLine IPartingLineFeatureData
MoldShutOffSrf IShutOffSurfaceFeatureData
SideCore ICoreFeatureData
XformStock DerivedPartFeatureData
Motion and Simulation AEM3DContact ISimulation3DContactFeatureData
AEMGravity ISimulationGravityFeatureData
AEMLinearDamper ISimulationDamperFeatureData
AEMLinearMotor ISimulationMotorFeatureData
AEMLinearSpring ISimulationLinearSpringFeatureData
AEMRotationalMotor ISimulationMotorFeatureData
AEMTorque ISimulationForceFeatureData
AEMTorsionalDamper ISimulationDamperFeatureData
AEMTorsionalSpring None (TorsionalSpring feature)
SimPlotFeature IMotionPlotFeatureData
SimPlotXAxisFeature IMotionPlotAxisFeatureData
SimPlotYAxisFeature IMotionPlotAxisFeatureData
SimResultFolder IMotionStudyResults
Reference Geometry CoordSys ICoordinateSystemFeatureData
RefAxis IRefAxis or IRefAxisFeatureData
RefPlane IRefPlane or IRefPlaneFeatureData
Scenes, Lights, and Cameras AmbientLight ILight
CameraFeature ICamera
DirectionLight ILight
PointLight ILight
SpotLight ILight
Sheet Metal SMBaseFlange IBaseFlangeFeatureData
BreakCorner IBreakCornerFeatureData
CornerTrim IBreakCornerFeatureData
CrossBreak ICrossBreakFeatureData
EdgeFlange IEdgeFlangeFeatureData
FlatPattern IFlatPatternFeatureData
FlattenBends IBendsFeatureData
Fold IFoldsFeatureData
FormToolInstance None (FormTool feature)
Hem IHemFeatureData
Jog IJogFeatureData
LoftedBend ILoftedBendsFeatureData
OneBend IOneBendFeatureData
ProcessBends IBendsFeatureData
SheetMetal ISheetMetalFeatureData
SketchBend IOneBendFeatureData
SM3dBend ISketchedBendFeatureData
SMGusset ISMGussetFeatureData
SMMiteredFlange IMiterFlangeFeatureData
TemplateSheetMetal ISheetMetalFolder
ToroidalBend IOneBendFeatureData
UnFold IFoldsFeatureData
Sketch 3DProfileFeature ISketch
3DSplineCurve IReferenceCurve or IReferencePointCurveFeatureData
CompositeCurve IReferenceCurve or ICompositeCurveFeatureData
ImportedCurve IReferenceCurve or IImportedCurveFeatureData
PLine ISplitLineFeatureData
ProfileFeature ISketch
RefCurve IReferenceCurve or IProjectionCurveFeatureData
RefPoint IRefPoint or IRefPointFeatureData
SketchBlockDef ISketchBlockDefinition
SketchBlockInst ISketchBlockInstance
SketchHole ISimpleHoleFeatureData2
SketchPattern ISketchPatternFeatureData
SketchBitmap ISketchPicture
Surface BlendRefSurface None (Surface-Loft feature)
ExtendRefSurface ISurfaceExtendFeatureData
ExtruRefSurface ISurfExtrudeFeatureData
FillRefSurface IFillSurfaceFeatureData
FlattenSurface ISurfaceFlattenFeatureData
MidRefSurface IMidSurface3
OffsetRefSuface ISurfaceOffsetFeatureData
PlanarSurface ISurfacePlanarFeatureData
RadiateRefSurface ISurfaceRadiateFeatureData
RefSurface None (Surface-Imported feature)
RevolvRefSurf ISurfRevolveFeatureData
RuledSrfFromEdge IRuledSurfaceFeatureData
SewRefSurface ISurfaceKnitFeatureData
SurfCut ISurfaceCutFeatureData
SweepRefSurface None (Surface-Sweep feature)
TrimRefSurface ISurfaceTrimFeatureData
UnTrimRefSurf None (Surface-Untrim feature)
Weldment CosmeticWeldBead ICosmeticWeldBeadFeatureData
EndCap IEndCapFeatureData
Gusset IGussetFeatureData
WeldBeadFeat IWeldmentBeadFeatureData
WeldCornerFeat IWeldmentTrimExtendFeatureData
WeldMemberFeat IStructuralMemberFeatureData
WeldmentTableFeat IWeldmentCutListFeature
NOTE: This method returns strings for some features shown in the FeatureManager design tree (e.g., MateGroup, Weldment, etc.) that set up the design functionality environment and, thus, do not have interfaces.
 

See Also

Availability

SOLIDWORKS 2008 FCS, Revision Number 16.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetTypeName2 Method (IFeature)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2017 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.