All Frameworks  Class Hierarchy  This Framework  Previous  Indexes

MechanicalModeler Class CATMmrShapeFeaturePropertiesAdapter

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---MecModInterfaces.CATIShapeFeatureProperties
        |
        +---CATMmrShapeFeaturePropertiesAdapter
 

Usage: you can derive this class.


public class CATMmrShapeFeaturePropertiesAdapter

Adapter class for the CATIShapeFeatureProperties interface.
Role: This class enables to implement the CATIShapeFeatureProperties interface. Create a new class deriving from the current one, and reimplement the necessary methods among the four following methods:


Constructor and Destructor Index


o CATMmrShapeFeaturePropertiesAdapter()
Constructs the class.
o ~CATMmrShapeFeaturePropertiesAdapter()

Method Index


o CanBePatterned()
Returns if the current feature can be patterned.
o GetPolarity()
Returns the polarity of the solid feature.
o GiveMeYourBRepSpecifications()
Returns all the BRep specifications.
o GiveMeYourFavoriteSketches()
Returns specific sketches.
o IsAContextualFeature()
Returns if the current solid feature is contextual.
o IsAFreeFormFeature()
Returns if the current solid feature is a form feature.

Constructor and Destructor


o CATMmrShapeFeaturePropertiesAdapter
public CATMmrShapeFeaturePropertiesAdapter()
Constructs the class.
o ~CATMmrShapeFeaturePropertiesAdapter
public virtual ~CATMmrShapeFeaturePropertiesAdapter()

Methods


o CanBePatterned
public virtual int CanBePatterned()const
Returns if the current feature can be patterned.
Returns:
An integer value.
Legal values:
  • 1 the current feature can be patterned.
  • 0 the current feature cannot be patterned.
The default implementation returns 0.
o GetPolarity
public virtual CATUnicodeString GetPolarity()const
Returns the polarity of the solid feature.
Role:This method returns the polarity of the solid feature. The polarity of a feature enables to know if the feature adds or removes matter.
Returns:
The polarity of the feature:
  • EltAdd: The solid feature adds matter
  • EltRemove: The solid feature removes matter
The default implementation returns EltAdd.
o GiveMeYourBRepSpecifications
public virtual CATLISTV(CATISpecObject_var) GiveMeYourBRepSpecifications()const
Returns all the BRep specifications.
Role: This method returns all the BRep ( CATIFeaturize ) features which are specifications of this solid feature.
The default implementation returns an empty list.
o GiveMeYourFavoriteSketches
public virtual CATLISTV(CATISpecObject_var) GiveMeYourFavoriteSketches()const
Returns specific sketches.
Role:This method returns specific referenced sketches of the solid feature. These sketches will be used in two cases: The default implementation returns an empty list.
o IsAContextualFeature
public virtual int IsAContextualFeature()const
Returns if the current solid feature is contextual.
Role:This method enables you to know if the solid feature is a contextual feature or not.
Returns:
An integer value.
Legal values:
  • 1 the current feature is contextual.
  • 0 the current feature is not contextual.
For the features representing a boolean operation ( Add, Assemble, Remove, Intersect and Union Trim) the value is 0.
o IsAFreeFormFeature
public virtual int IsAFreeFormFeature()const
Returns if the current solid feature is a form feature.
Role:This method enables you to know if the solid feature is a form feature or not.
Returns:
An integer value.
Legal values:
  • 1 the current feature is a form feature.
  • 0 the current feature is not a form feature.
For the features representing a boolean operation ( Add, Assemble, Remove, Intersect and Union Trim) the value is 0.

This object is included in the file: CATMmrShapeFeaturePropertiesAdapter.h
If needed, your Imakefile.mk should include the module: CATMechanicalModeler

Copyright © 2003, Dassault Systèmes. All rights reserved.