CATPartUseItf Interface CATIPdgUseDraft
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIPdgUseDraft
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(CATBaseUnknown_var,int)
- Sets the draft neutral element.
- o
ModifyParting(CATBaseUnknown_var)
- Sets the draft parting element.
- o
ModifyPullingDirection(CATMathDirection,int,int)
- Sets the pulling direction.
- o
ModifyPullingDirection(CATBaseUnknown_var,int,int)
- Sets the pulling direction reference.
- o
SetContext(int)
- Sets the context of Draft feature.
- o
SetPullDirOrientation(int,int)
- Sets the pulling direction orientation.
Methods
o GetAngle
public virtual GetAngle( | | iSide | =1) |
-
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 GetContext( | | oContext) |
-
Returns the context of Draft feature.
- Parameters:
-
- oContext
- context can be :
- 0 (Part)
- 4 (Volume)
- 5 (Functional)
o GetMode
public virtual GetMode( | | iSide | =1) |
-
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
public virtual GetNeutral( | | iSide | =1) |
-
Returns the neutral element.
Legal values: The CATISpecObject_var is a plane, a face or a surface.
o GetParting
public virtual GetParting( | ) |
-
Returns the parting element.
Legal values: The CATISpecObject_var is a plane, a face or a surface.
o GetPullDirOrientation
public virtual GetPullDirOrientation( | | iSide, |
| | oOrientation) |
-
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
public virtual GetPullingDirection( | | iSide | =1) |
-
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
public virtual GetPullingDirectionObject( | | iSide | =1) |
-
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
public virtual GetSupportToDraft( | ) |
-
Returns the list of faces to be drafted.
Legal values: The CATISpecObject_var is a face.
o ModifyAngle
public virtual ModifyAngle( | | iAngle, |
| | iSide | =1) |
-
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
public virtual ModifyNeutral( | | ihNeutral_input, |
| | iSide | =1) |
-
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
public virtual ModifyParting( | | ihParting_input) |
-
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 ModifyPullingDirection( | | iPullDir, |
| | iSide | =1, |
| | iBuild | =1) |
-
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 ModifyPullingDirection
public virtual ModifyPullingDirection( | | ihPullDirSpec_input, |
| | iSide | =1, |
| | iBuild | =1) |
-
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 SetContext
public virtual SetContext( | | iContext) |
-
Sets the context of Draft feature.
- Parameters:
-
- iContext
- context can be :
- 0 (Part)
- 4 (Volume)
- 5 (Functional)
o SetPullDirOrientation
public virtual SetPullDirOrientation( | | iOrientation, |
| | iSide) |
-
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: CATIPdgUseDraft.h
If needed, your Imakefile.mk should include the module: CATPartUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.