ReferenceLine Class
The commands in the ReferenceLine 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... | |
| 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... | |
| ReferenceObject * | GetLine () |
| Returns the line. More... | |
| String | GetName () |
| Returns a name. More... | |
| virtual Variant | GetProperty (String &name) |
| Returns the value of the property with the specified name. More... | |
| String | GetScriptTypeName () |
| Returns the name of the object type as a string. More... | |
| int | GetType () |
| Returns a value as the method for specifying a reference line. More... | |
| String | GetTypeAsString () |
| Returns a string as the method for specifying a reference line. More... | |
| double | GetXOffset () |
| Returns the offset value from the reference line in the X coordinate. More... | |
| double | GetYOffset () |
| Returns the offset value from the reference line in the Y coordinate. More... | |
| double | GetZOffset () |
| Returns the offset value from the reference line in the Z coordinate. More... | |
| virtual bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumItems () |
| Returns the number of items. More... | |
| void | SetCircle (ReferenceObject *ref) |
| Specifies the cylindrical face or circle to reference. More... | |
| void | SetLine (ReferenceObject *ref) |
| Specifies the line to reference. More... | |
| void | SetLineAndVertexList (StringList &value) |
| Specifies the line and point. More... | |
| void | SetLineList (StringList &value) |
| Specifies two lines. More... | |
| void | SetName (String &name) |
| Specifies a name. More... | |
| void | SetOffset (double x, double y, double z) |
| Specifies the offset value from the reference line in each coordinate. More... | |
| void | SetPlaneAndVertexList (StringList &value) |
| Specifies the plane and point. More... | |
| void | SetPlaneList (StringList &value) |
| Specifies two planes. 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 | SetType (int t) |
| Specifies a value as the method for specifying a reference line. More... | |
| void | SetTypeByString (String &t) |
| Determines how to specify a reference line by using a string. More... | |
| void | SetVertexList (StringList &value) |
| Specifies two points. More... | |
| void | SetXOffset (double value) |
| Specifies the offset value from the reference line in the X coordinate. More... | |
| void | SetYOffset (double value) |
| Specifies the offset value from the reference line in the Y coordinate. More... | |
| void | SetZOffset (double value) |
| Specifies the offset value from the reference line in the Z coordinate. More... | |
ReferenceLine Class
The commands in the ReferenceLine class are described below.
.
The ReferenceLine 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) |
|
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 |
| ReferenceObject * ReferenceLine::GetLine | ( | ) |
Returns the line.
|
inherited |
Returns a name.
|
virtualinherited |
Returns the value of the property with the specified name.
| name | Property name |
|
inherited |
Returns the name of the object type as a string.
| int ReferenceLine::GetType | ( | ) |
Returns a value as the method for specifying a reference line.
| String ReferenceLine::GetTypeAsString | ( | ) |
Returns a string as the method for specifying a reference line.
| double ReferenceLine::GetXOffset | ( | ) |
Returns the offset value from the reference line in the X coordinate.
| double ReferenceLine::GetYOffset | ( | ) |
Returns the offset value from the reference line in the Y coordinate.
| double ReferenceLine::GetZOffset | ( | ) |
Returns the offset value from the reference line in the Z coordinate.
|
virtualinherited |
Returns True if an object is valid.
Reimplemented in Sketch, Part, SketchItem, and MeshPart.
|
inherited |
Returns the number of items.
| void ReferenceLine::SetCircle | ( | ReferenceObject * | ref | ) |
Specifies the cylindrical face or circle to reference.
| ref | ReferenceObject object |
| void ReferenceLine::SetLine | ( | ReferenceObject * | ref | ) |
Specifies the line to reference.
| ref | ReferenceObject object |
| void ReferenceLine::SetLineAndVertexList | ( | StringList & | value | ) |
Specifies the line and point.
| value | List of IDs of the line and point |
For more information about the commands of string array type, see "Example of the String Array Type."
| void ReferenceLine::SetLineList | ( | StringList & | value | ) |
Specifies two lines.
| value | List of IDs of two lines |
For more information about the commands of string array type, see "Example of the String Array Type."
|
inherited |
Specifies a name.
| name | Item name |
| void ReferenceLine::SetOffset | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies the offset value from the reference line in each coordinate.
| x | Offset value in the X coordinate |
| y | Offset value in the Y coordinate |
| z | Offset value in the Z coordinate |
| void ReferenceLine::SetPlaneAndVertexList | ( | StringList & | value | ) |
Specifies the plane and point.
| value | List of IDs of the plane and point |
For more information about the commands of string array type, see "Example of the String Array Type."
| void ReferenceLine::SetPlaneList | ( | StringList & | value | ) |
Specifies two planes.
| value | List of IDs of two planes |
For more information about the commands of string array type, see "Example of the String Array Type."
|
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 ReferenceLine::SetType | ( | int | t | ) |
Specifies a value as the method for specifying a reference line.
| t | 0 : Specifies an offset from a line
1 : Specifies two points
2 : Specifies two planes
3 : Specifies two lines
4 : Specifies the plane and point
5 : Specifies the line and point
6 : Specifies the cylindrical face or circle
|
| void ReferenceLine::SetTypeByString | ( | String & | t | ) |
Determines how to specify a reference line by using a string.
| t | LineOffset : Specifies an offset from a line
2Points : Specifies two points
2Planes : Specifies two planes
2Lines : Specifies two lines
PlaneVertex : Specifies the plane and point
LineVertex : Specifies the line and point
Circle : Specifies the cylindrical face or circle
|
| void ReferenceLine::SetVertexList | ( | StringList & | value | ) |
Specifies two points.
| value | List of IDs of two points |
For more information about the commands of string array type, see "Example of the String Array Type."
| void ReferenceLine::SetXOffset | ( | double | value | ) |
Specifies the offset value from the reference line in the X coordinate.
| value | Offset value in the X coordinate |
| void ReferenceLine::SetYOffset | ( | double | value | ) |
Specifies the offset value from the reference line in the Y coordinate.
| value | Offset value in the Y coordina |
| void ReferenceLine::SetZOffset | ( | double | value | ) |
Specifies the offset value from the reference line in the Z coordinate.
| value | Offset value in the Z coordinate |