IAttributeSetAttribute(IAttributeElement, IObject, Boolean) Method

Set attribute of parent object, if it is a float attribute the value must be in depending unit! E.g. "comp_height" use Inch and "spo_s_val" mils.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static bool SetAttribute(
	IAttributeElement Attribute,
	IObject Parent,
	bool FireEvent
)

Parameters

Attribute  IAttributeElement
The attribute element with checked value.
Parent  IObject
The object to add the attribute (IODBObject or ICMPObject).
FireEvent  Boolean
Fire AttributeAddedOrChanged Event

Return Value

Boolean
True if the attribute can be added.

See Also