Skip to main content
14-Alexandrite
March 15, 2024
Question

How do you assign an object's name as an attribute value?

  • March 15, 2024
  • 1 reply
  • 559 views

We want to assign the object name 'TEST_S325.5_46HP' to attribute values. We have 3 attributes: 'customer', 'emission', and 'engine'. We assign 'TEST' to 'customer', 'S325.5' to 'emission', and '46HP' to 'engine' without underscores in the object name.

1 reply

18-Opal
March 16, 2024

@AR_9920456 

 

How does this look?

Notice the attributes were updated WITHOUT iterating the object, this test was done on a WTPart but this can work on an EPMDocument or any object type.

This was done using some code I wrote per your post.

 

Before

d_graham_0-1710628424173.png

After

d_graham_1-1710628814877.png

 

David