ExtrudeCut Class
The commands in the ExtrudeCut class are described below.
.
More...
Inherits ItemObject.
Public Member Functions | |
| virtual void | AddPropertyByReference (String &name, ReferenceObject *value) |
| Adds ReferenceObject object to a specified variable. More... | |
| double | GetHeight () |
| Returns the height to extrude. More... | |
| ItemObject * | GetItem (Variant &value) |
| Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree. More... | |
| String | GetName () |
| Returns a name. More... | |
| virtual Variant | GetProperty (String &name) |
| Returns the value of the property with the specified name. More... | |
| bool | GetReverse () |
| Returns True as a value when a direction is reversed. More... | |
| String | GetScriptTypeName () |
| Returns the name of the object type as a string. More... | |
| Sketch * | GetSketch () |
| Returns the sketch used to extrude a solid. More... | |
| double | GetSkewAngle () |
| Returns the rotation angle of a skew. More... | |
| int | GetSkewAxisType () |
| Returns a specification method of point on rotation axis for a skew in integer. More... | |
| String | GetSkewAxisTypeAsString () |
| Returns a specification method of point on rotation axis for a skew in integer. More... | |
| int | GetType () |
| Returns the value for the type of extrusion cut. More... | |
| String | GetTypeAsString () |
| Returns the type of extrusion cut as a string. More... | |
| bool | GetUseSkew () |
| Returns True when skew is set. More... | |
| virtual bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumItems () |
| Returns the number of items. More... | |
| void | SetData (double height, bool reverse) |
| Specifies the height and whether or not to reverse the direction of extrude cut. More... | |
| void | SetHeight (double value) |
| Specifies the height of a piece to cut from a solid. More... | |
| void | SetName (String &name) |
| Specifies a name. More... | |
| void | SetPointOnSkewAxis (double x, double y, double z) |
| Specifies a point on rotation axis of a skew in coordinates. More... | |
| virtual void | SetProperty (String &name, Variant &value) |
| Specifies a value of property. More... | |
| virtual void | SetPropertyByReference (String &name, ReferenceObject *value) |
| Specifies the values in properties by ReferenceObject object. More... | |
| void | SetReverse (bool value) |
| Specifies whether or not to reverse the direction. More... | |
| void | SetSkewAngle (double value) |
| Specifies the rotation angle of a skew. More... | |
| void | SetSkewAxisType (int value) |
| Specification method of point on rotation axis for a skew in number. More... | |
| void | SetSkewAxisTypeByName (String &value) |
| Specification method of point on rotation axis for a skew in string. More... | |
| void | SetType (int value) |
| Specifies the value for the type of extrusion cut as a number. More... | |
| void | SetTypeByName (String &value) |
| Specifies the type of extrusion cut using a string. More... | |
| void | SetUseSkew (bool value) |
| Specifies whether or not to set the skew. More... | |
ExtrudeCut Class
The commands in the ExtrudeCut class are described below.
.
The ExtrudeCut class includes the commands for the following operation.
For more information about the properties for this class, see here .
|
virtualinherited |
Adds ReferenceObject object to a specified variable.
| name | Property name |
| value | ReferenceObject object (target) |
| double ExtrudeCut::GetHeight | ( | ) |
Returns the height to extrude.
|
inherited |
Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree.
| value | Item name or index |
|
inherited |
Returns a name.
|
virtualinherited |
Returns the value of the property with the specified name.
| name | Property name |
| bool ExtrudeCut::GetReverse | ( | ) |
Returns True as a value when a direction is reversed.
|
inherited |
Returns the name of the object type as a string.
| double ExtrudeCut::GetSkewAngle | ( | ) |
Returns the rotation angle of a skew.
| int ExtrudeCut::GetSkewAxisType | ( | ) |
Returns a specification method of point on rotation axis for a skew in integer.
| String ExtrudeCut::GetSkewAxisTypeAsString | ( | ) |
Returns a specification method of point on rotation axis for a skew in integer.
| int ExtrudeCut::GetType | ( | ) |
Returns the value for the type of extrusion cut.
| String ExtrudeCut::GetTypeAsString | ( | ) |
Returns the type of extrusion cut as a string.
| bool ExtrudeCut::GetUseSkew | ( | ) |
Returns True when skew is set.
|
virtualinherited |
Returns True if an object is valid.
Reimplemented in Sketch, Part, SketchItem, and MeshPart.
|
inherited |
Returns the number of items.
| void ExtrudeCut::SetData | ( | double | height, |
| bool | reverse | ||
| ) |
Specifies the height and whether or not to reverse the direction of extrude cut.
| height | Height |
| reverse | True=1 : reverse
False=0 : Do not reverse
|
| void ExtrudeCut::SetHeight | ( | double | value | ) |
Specifies the height of a piece to cut from a solid.
| value | Height of a piece to be extruded from a part |
|
inherited |
Specifies a name.
| name | Item name |
| void ExtrudeCut::SetPointOnSkewAxis | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies a point on rotation axis of a skew in coordinates.
| x | X-coordinate for point on rotation axis of skew |
| y | Y-coordinate for point on rotation axis of skew |
| z | Z-coordinate for point on rotation axis of skew |
|
virtualinherited |
Specifies a value of property.
| name | Property name |
| value | Value of properties |
Reimplemented in SketchItem.
|
virtualinherited |
Specifies the values in properties by ReferenceObject object.
| name | Property name |
| value | ReferenceObject object (target) |
| void ExtrudeCut::SetReverse | ( | bool | value | ) |
Specifies whether or not to reverse the direction.
| value | True=on : Reverse
False=off : Do not reverse
|
| void ExtrudeCut::SetSkewAngle | ( | double | value | ) |
Specifies the rotation angle of a skew.
| value | Rotation angle of a skew |
| void ExtrudeCut::SetSkewAxisType | ( | int | value | ) |
Specification method of point on rotation axis for a skew in number.
| value | 0 : Selects point
1 : Specifies coordinates
|
| void ExtrudeCut::SetSkewAxisTypeByName | ( | String & | value | ) |
Specification method of point on rotation axis for a skew in string.
| value | SelectVertex : Selects point
SetCoordinate : Specifies coordinates
|
| void ExtrudeCut::SetType | ( | int | value | ) |
Specifies the value for the type of extrusion cut as a number.
| value | True=on : Both sides
False=off : One side
|
| void ExtrudeCut::SetTypeByName | ( | String & | value | ) |
Specifies the type of extrusion cut using a string.
| value | BothSides
OneSide
|
| void ExtrudeCut::SetUseSkew | ( | bool | value | ) |
Specifies whether or not to set the skew.
| value | 0/True=on : Skew
1/False=off : Do not skew
|