Share

IiProperties.InstanceValue Property

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.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 29.0

Syntax

VB

Property InstanceValue ( 
	componentName As Object,
	propertyName As String
) As Object
	Get
	Set

C#

Object this[
	Object componentName,
	string propertyName
] { get; set; }

Parameters

componentName
Type: System.Object
The component name.
propertyName
Type: System.String
The name of the instance property.

Property Value

Type: Object
The property value.

Remarks

Sample code:

iProperties.InstanceValue("PartX:1", "Side") = "Left"
Dim partX1Side = iProperties.InstanceValue("PartX:1", "Side")

See Also

Reference

Was this information helpful?