IiProperties Interface |
In a rule, this interface is implemented by the predefined object named iProperties.
Namespace: Autodesk.iLogic.Interfaces
The IiProperties type exposes the following members.
Name | Description | |
---|---|---|
Area |
Gets the total surface area of the current part or assembly.
| |
AreaObject |
Gets the surface area of a component or document.
| |
AreaOfComponent | ||
CenterOfGravity |
Gets the center of gravity (center of mass) of the entire part or assembly.
| |
CenterOfGravityObject |
Gets the center of gravity (center of mass) of a component or document.
| |
CenterOfGravityOfComponent | ||
Mass |
Gets or sets (overrides) the total mass of the part or assembly.
| |
MassObject |
Gets or sets (overrides) the mass of a component or document.
| |
MassOfComponent | ||
Material |
Gets or sets the material of the part in which the rule is running.
Note: this will only work in a part.
| |
MaterialObject |
Gets or sets the material of a part. The part can be specified by using a component name or a document name.
Note: this will only work on a component that is a part.
| |
Materials |
Get a list of the names of materials available in the current part or assembly.
| |
PartColor |
Gets or sets the appearance (which may be a color) of the part in which the rule is running.
| |
StylesInEnglish |
Gets or sets a value that affects several iProperties functions.
If this is set to True, the functions that return a material or appearance (color) name will return the name in English.
This can be used to make rules more portable.
The default is False.
| |
ValueString, String |
Gets or sets the value of an iProperty.
The value can be a String, Double, Date or Boolean.
Note: the type of the iProperty can be changed by setting this value.
| |
ValueObject, String, String |
Gets or sets the value of an iProperty in a component or document.
The value can be a String, Double, Date or Boolean.
Note: the type of the iProperty can be changed by setting this value.
| |
Volume |
Gets or sets (overrides) the total volume of the part or assembly.
| |
VolumeObject |
Gets or sets (overrides) the volume of a component or document.
| |
VolumeOfComponent |