SetAttributeString Method

Assigns a value to a string type attribute.

Syntax

feature.SetAttributeString(String, String): Void

where the first argument  is name of the attribute while the second is the value to be assigned to it.

Example

if PartBody\Pad.1.GetAttributeString("String.1") <> "String1"
PartBody\Pad.1 .SetAttributeString("String.1","This is a test")

Another syntax for the same rule is:

if PartBody\Pad.1\String.1 <> "String1"
PartBody\Pad.1.SetAttributeString("String.1","This is a test")

Sample

KwrObject.CATPart

 

Back Up