Adding UDAs to custom components
Not version-specific
Tekla Structures
Environment
Not environment-specific
Question:
Is it possible to add UDAs to custom components? Not to the parts, but to the components?
Answer:
You can create a sort of UDA for custom components. Here are quick instructions. Note that you need to be familiar with creating custom components and templates to follow them.
- In the custom component editor, create generic parameters that will be your UDAs. It may be a good idea to prefix the name with “UDA”, so that it is easier to remember and identify.Image
- In the custom component dialog box, use the Save as button to create an attributes file in your model folder.
Image
- Open the attributes file in a text editor and find the name of the parameter. It should be
<cc name>_attributes.<parameter name>
.Image - In Template Editor, use the CONNECTION row type, and you can get the value as a user-defined attribute by using the following formula:
GetValue(“USERDEFINED.<attribute name from the attribute file>”)
Image