API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

PluginSetAttribute Method (String, Int32)

Sets the specified attribute of the plug-in to the given value. NOTE! Only works on already inserted plug-ins.

Namespace:  Tekla.Structures.Drawing
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2022.0.13611
public void SetAttribute(
	string FieldName,
	int fieldValue


Type: SystemString
The name of the attribute to set.
Type: SystemInt32
The value for the attribute.
CannotSetAttributeForPluginException Thrown when setting the attribute to the plug-in failed for an unknown reason (might indicate an invalid plug-in name).
CannotSetAttributeForPluginDueToIncorrectTypeException Thrown when setting a value with an invalid type for the specified field.
CannotSetAttributeForPluginDueToInexistantFieldException Thrown when setting the value of an inexistent field.
See Also