Share

IiProperties Properties

The IiProperties type exposes the following members.

Properties

  NameDescription
Public propertyArea
Gets the total surface area of the current part or assembly.
Public propertyArea(Object)
Gets the surface area of a component or document.
Public propertyCenterOfGravity
Gets the center of gravity (center of mass) of the entire part or assembly.
Public propertyCenterOfGravity(Object)
Gets the center of gravity (center of mass) of a component or document.
Public propertyExpression(String, String)
Gets or sets the expression of an iProperty. The value will be String.
Public propertyExpression(Object, String, String)
Gets or sets the expression of an iProperty in a component or document. The value will be String.
Public propertyInstanceExpression
Gets or sets the expression of an instance property on a component occurrence. If you set the expression of an instance property that does not already exist, it will be created.
Public propertyInstanceValue
Gets or sets the value of an instance property on a component occurrence. The value can be a String, Double, Date or Boolean. If you set the value of an instance property that does not already exist, it will be created. Note: the type of the property (Text, Number, etc.) can be changed by setting this value.
Public propertyMass
Gets or sets (overrides) the total mass of the part or assembly.
Public propertyMass(Object)
Gets or sets (overrides) the mass of a component or document.
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 propertyMaterial(Object)
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 propertyMemberEditScope
For model state documents, sets the member edit scope for iProperty changes made by iLogic rules. Possible values are:
kEditActiveMember : apply changes to the active member only
kEditAllMembers : apply changes to all members within the factory
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 propertyValue(String, 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 propertyValue(Object, 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 propertyVolume(Object)
Gets or sets (overrides) the volume of a component or document.

See Also

Reference

Was this information helpful?