All Frameworks Class Hierarchy This Framework Previous Next Indexes
PartInterfaces Interface CATIDraft
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---PartInterfaces.CATIShape
|
+---CATIDraft
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIDraft
Interface to read or modify the draft feature.
Role: Drafts are defined on molded parts to make them easier to remove from molds.
Method Index
- o
GetAngle(int)
- Returns the draft angle value.
- o
GetContext(int&)
- Returns the context of Draft feature.
- o
GetMode(int)
- Returns the draft mode (standard or reflectline).
- o
GetNeutral(int)
- Returns the neutral element.
- o
GetParting()
- Returns the parting element.
- o
GetPullDirOrientation(int,int&)
- Gets the pulling direction orientation.
- o
GetPullingDirection(int)
- Returns the pulling direction as a normalized vector.
- o
GetPullingDirectionObject(int)
- Returns the pulling direction reference.
- o
GetSupportToDraft()
- Returns the list of faces to be drafted.
- o
ModifyAngle(double,int)
- Sets the draft angle value.
- o
ModifyNeutral(CATISpecObject_var,int)
- Sets the draft neutral element.
- o
ModifyParting(CATISpecObject_var)
- Sets the draft parting element.
- o
ModifyPullingDirection(CATISpecObject_var,int,int)
- Sets the pulling direction reference.
- o
ModifyPullingDirection(CATMathDirection,int,int)
- Sets the pulling direction.
- o
SetContext(int)
- Sets the context of Draft feature.
- o
SetPullDirOrientation(int,int)
- Sets the pulling direction orientation.
Methods
o GetAngle
public virtual double GetAngle( | int | iSide | =1) const= 0 |
-
Returns the draft angle value.
Legal values: The value is returned in degree.
- Parameters:
-
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
o GetContext
public virtual HRESULT GetContext( | int& | oContext) = 0 |
-
Returns the context of Draft feature.
- Parameters:
-
- oContext
- context can be :
- 0 (Part)
- 4 (Volume)
- 5 (Functional)
o GetMode
public virtual int GetMode( | int | iSide | =1) const=0 |
-
Returns the draft mode (standard or reflectline).
Legal values: The Draft mode is either
0 standard (the draft's neutral element must be input).
1 reflectline (the draft's neutral element is computed as the reflect line).
- Parameters:
-
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
o GetNeutral
-
Returns the neutral element.
Legal values: The CATISpecObject_var is a plane, a face or a surface.
o GetParting
-
Returns the parting element.
Legal values: The CATISpecObject_var is a plane, a face or a surface.
o GetPullDirOrientation
public virtual HRESULT GetPullDirOrientation( | int | iSide, |
| int& | oOrientation) = 0 |
-
Gets the pulling direction orientation.
- Parameters:
-
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
- oOrientation
- Output value
Legal values: 1,-1.
o GetPullingDirection
-
Returns the pulling direction as a normalized vector.
The pulling direction is the direction in which the mold will be removed from the part.
- Parameters:
-
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
o GetPullingDirectionObject
-
Returns the pulling direction reference.
Legal values: The CATISpecObject_var is either
- a plane or a planar face or a planar surface
- the pulling direction is normal to this element, or
- a line or a linear edge
- the pulling direction is the direction of the element, or
- NULL_var
- there is no pulling direction reference.
- Parameters:
-
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
o GetSupportToDraft
-
Returns the list of faces to be drafted.
Legal values: The CATISpecObject_var is a face.
o ModifyAngle
public virtual void ModifyAngle( | double | iAngle, |
| int | iSide | =1) = 0 |
-
Sets the draft angle value.
- Parameters:
-
- iAngle
- The draft angle value.
Legal values: Angle between -90 degrees (not included) to +90 degrees (not included).
The value should be set in degree.
o ModifyNeutral
-
Sets the draft neutral element.
- Parameters:
-
- ihNeutral
- The neutral element.
The intersection of this element and the faces to be drafted
defines a neutral curve on which the drafted face will lie.
This element will remain the same during the draft.
The neutral element and parting element may be the same element.
Legal values: The CATISpecObject_var could be a plane, a face or a surface.
NULL_var value is not allowed.
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
o ModifyParting
-
Sets the draft parting element.
- Parameters:
-
- ihParting
- The parting element.
This element cuts the faces to be drafted in two and one portion is drafted according to its
previously defined pulling direction.
The parting element and neutral element may be the same element.
Legal values: The CATISpecObject_var could be a plane, a face or a surface.
NULL_var value means draft with no parting element.
o ModifyPullingDirection
public virtual void ModifyPullingDirection( | CATISpecObject_var | ihPullDirSpec, |
| int | iSide | =1, |
| int | iBuild | =1) =0 |
-
Sets the pulling direction reference.
- Parameters:
-
- ihPullDirSpec
- The pulling direction reference.
Precondition: If you used a reference you must set the pulling direction iPullDir to the
CATMathDirection of the reference.
Legal values: The CATISpecObject_var is either
- a plane or a planar face or a planar surface
- the pulling direction is normal to this element, or
- a line or a linear edge
- the pulling direction is the direction of the element, or
- NULL_var
- there is no pulling direction reference.
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
- iBuild
- Do not use this parameter.
o ModifyPullingDirection
public virtual void ModifyPullingDirection( | CATMathDirection | iPullDir, |
| int | iSide | =1, |
| int | iBuild | =1) =0 |
-
Sets the pulling direction.
- Parameters:
-
- iPullDir
- The pulling direction.
This is the direction in which the mold will be removed from the part.
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
- iBuild
- Do not use this parameter.
o SetContext
public virtual HRESULT SetContext( | int | iContext) = 0 |
-
Sets the context of Draft feature.
- Parameters:
-
- iContext
- context can be :
- 0 (Part)
- 4 (Volume)
- 5 (Functional)
o SetPullDirOrientation
public virtual HRESULT SetPullDirOrientation( | int | iOrientation, |
| int | iSide) = 0 |
-
Sets the pulling direction orientation.
- Parameters:
-
- iOrientation
- Pullign Direction Orientation value
Legal values: 1,-1.
- iSide
- Side number (used in case of draft both sides)
Specify which side of the parting element will be concerned
Legal values: 1,2.
This object is included in the file: CATIDraft.h
If needed, your Imakefile.mk should include the module: CATPartInterfaces