Click or drag to resize

IiProperties Interface

Provides properties to get and set iProperty values and physical properties (in a part or assembly).

In a rule, this interface is implemented by the predefined object named iProperties.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Public Interface IiProperties

The IiProperties type exposes the following members.

Properties
  NameDescription
Public propertyArea
Gets the total surface area of the current part or assembly.
Public propertyAreaObject
Gets the surface area of a component or document.
Public propertyAreaOfComponent
Public propertyCenterOfGravity
Gets the center of gravity (center of mass) of the entire part or assembly.
Public propertyCenterOfGravityObject
Gets the center of gravity (center of mass) of a component or document.
Public propertyCenterOfGravityOfComponent
Public propertyMass
Gets or sets (overrides) the total mass of the part or assembly.
Public propertyMassObject
Gets or sets (overrides) the mass of a component or document.
Public propertyMassOfComponent
Public propertyMaterial
Gets or sets the material of the part in which the rule is running. Note: this will only work in a part.
Public propertyMaterialObject
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.
Public propertyMaterials
Get a list of the names of materials available in the current part or assembly.
Public propertyPartColor
Gets or sets the appearance (which may be a color) of the part in which the rule is running.
Public propertyStylesInEnglish
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.
Public propertyValueString, 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.
Public propertyValueObject, 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.
Public propertyVolume
Gets or sets (overrides) the total volume of the part or assembly.
Public propertyVolumeObject
Gets or sets (overrides) the volume of a component or document.
Public propertyVolumeOfComponent
Top
See Also