2023-09-06 11:53 AM - last edited on 2024-09-17 12:59 PM by Doreena Deng
Hi
I want to create an identical attribute for all elements in the project to set a custom ID of my company.
I learn how to add a String attribute to a selected element through the Property_Test example. But only elements can be selected, and an attribute can be set to a certain type of element. If I want to set the same attribute to other types of elements, an error message will be generated. It is APIERR_NAMEALREADYUSED. I learned that this was because I set the same property name. For example, if I select a wall, I set a custom ID for all the walls, but if I select the door and set the custom ID, I get the error.
I want to set the same property custom ID to all the elements in the project without having to select a particular element, please give me some help.
🙂
Newbie Allen
2023-09-13 07:31 AM
If you are asking how to embed a company ID code into each element for some sort of tracking purpose, I’ll leave that to others. If you are looking to use standardized alpha/numeric codes to standardize different elements and objects: have you tried creating a property group using the Property Manager? I’ve set this up on projects to identified pre-set specs (mostly F&E, but can apply to elements) to coordinate with other team members. Within the property group you have the option to add all manner of properties related to each other under that group.
2023-09-13 07:46 AM
Hi, Marc
Thanks for your suggestion, I have implemented my idea through ACAPI_ElementList_AddProperty.
I'm working on the next problem.
I'll come back and ask questions if it hasn't worked out for a while. 🙂