Create Attributes
You can create attributes for types, attributes groups, and extensions.
- Open the type, attributes group, or extension to which you want to add attributes.
- Click Attributes to open its Attributes tab.
-
From the upper-right hand corner of the app, click
Create a new attribute and select the type of the attribute you
want to create.
The Create a new [attribute type] attribute dialog box opens.
This dialog box allows you to create up to three attributes at the same time. There is one row per attribute. Attribute properties are organized into the following categories: Basics, Values, Behaviors, and Titles. To go to a specific category, you can click its name or use the horizontal scroll bar at the bottom of the dialog box.
This dialog box also displays an information message when the type, attributes group, or extension has already been exported (that is, when the element has an orange lock).
Note: If you create an attribute for this element, you can then only export and deploy your specialization under certain conditions. For more information, see Exporting and Deploying a Specialization.If you cannot find the Create a new attribute command, verify that Enterprise IP Schema Specialization is in a development environment. -
For each attribute, fill in its properties as follows:
Property category Property Steps Basics Name Enter a name for your attribute. The name you enter must comply with the following rules:
- Use only [a-z][A-Z][0-9] characters.
- The name must start with a letter.
- The name cannot start with XP.
- You cannot use a name that any default Dassault Systèmes element or any existing specialization element already uses.
Important: You cannot edit this property after creation of the attribute. Predicate To support 6W-based searches, click the field and select a predicate from the list that most closely matches the purpose of the new attribute. Note: The list only displays predicates that are compatible with the attribute type.Length Note: This property is only available for string attributes.Enter a number to specify the maximum length of the value that the end user can enter. Leaving this field blank or entering 0 means no limit.
Note: You can edit this property at any time after creation of the attribute, but only to increase the number you have defined.Recommendation: To optimize the storage resources, define a length that is less than 1000.Dimension Note: This property is only available for attributes with dimension.Click the field and select a dimension from the list.
Preferred Unit Note: This property is only available for attributes with dimension.Click the field and select a unit of measurement from the list.
Available units depend on the dimension that you have selected.
The unit appears in end-user apps.
Values Authorized values Note: This property is only available for string and integer attributes.- To restrict the values for this attribute to specific values, enter a
semicolon-separated list of authorized values. Do not insert spaces
between values. Use only [a-z][A-Z][0-9]
characters.
For example:
value1;value2;value3. Users can only select one of the defined values and cannot enter any different value.Notes:- For integer attributes: An integer is a whole number stored as a signed 32-bit integer. Its range is limited by the operating system to be between -2,147,483,648 and 2,147,483,647. Enter a value that complies with this limit. For more information, see Integer on Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Legacy Tools | MQL Command Reference | MQL Command Reference | attribute Command | Add Attribute Command | Type Clause for the Add Attribute Command.
- The authorized values that you have entered can appear in a different order on your Enterprise IP Schema Specialization app and on the end-user apps. They can also appear in a different order when you export/deploy the specializations that contain them. You cannot control this order.
- Click and enter translations for the authorized values you have defined.
Default value If appropriate, enter a default value for the attribute: - For string attributes, enter the text.
- For Booleans attributes, select True or False.
- For date attributes, select a date from the calendar
- For integer and real attributes, enter a number. Note: For integer attributes: An integer is a whole number stored as a signed 32-bit integer. Its range is limited by the operating system to be between -2,147,483,648 and 2,147,483,647. Enter a value that complies with this limit. For more information, see Integer on Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Legacy Tools | MQL Command Reference | MQL Command Reference | attribute Command | Add Attribute Command | Type Clause for the Add Attribute Command.
- For attributes with dimension, enter a value in SI units.
If you defined a list of authorized values and want to specify a default value, enter one of the authorized values. If you do not want to specify a default value, leave the field blank.
If you enable the Multivalue property, you cannot enter a default value, and you must leave the field blank.
Editability by users Click the field and select a user access. Read-only means that the end users can only enter a value using an external app (based on CAA/Automation programming) and not by a desktop app or a web app.
Behaviors Multivalue Turn to blue to enable. When enabled, the user can enter more than one value for the attribute. Multiline Note: This property is only available for string attributes.Turn to blue to enable. When enabled, the data entry field can spread over several lines in the user interfaces of the end-user apps. Searchable Turn to blue to enable. When enabled, you can use 3DSearch for filtering in the Advanced Search. If you also selected a predicate, end users can use the attribute when filtering with Tags. Reset when duplicated Turn to blue to enable. When enabled, the value for this attribute resets to the default value, if any, when the end user duplicates the object. When disabled, the current value is copied to the duplicated object. Reset when versioned Turn to blue to enable. When enabled, the value for this attribute resets to the default value, if any, when the end user creates a new version. When disabled, the current value is copied to the new version. Export in 3DXML Turn to blue to enable. When enabled, you can export the attribute to 3D XML, a proprietary XML-based format used to export and import 3D data. This option applies only to desktop apps. If you export 3D XML data and import the file to another server, the destination server only imports the attribute if it is also available on the destination server. That is, if this option is true for the attribute on the export server but false on the import server, the destination server does not import the attribute.
Mandatory UX Turn to blue to enable. When enabled, the user interface of the compatible apps enforces additional checks to forbid blank values as attribute values, preventing end users from saving their objects when they have not entered a value, or selected an authorized value, if any. When disabled, user interfaces accept blank values.
Note: As this constraint does not exist at the database level, this blank definition depends on the requirements of each app.Titles Language fields For each language, enter a translation for your attribute name. Notes:- If you leave the English field blank, Enterprise IP Schema Specialization is going to fill it in with the internal name. End-user apps using the English language are going to display this internal name.
- If you leave the French, German, Japanese, Korean, Russian, or Chinese field blank, end-user apps using any of these languages are going to display what you entered in the English field.
- If you leave all fields blank, Enterprise IP Schema Specialization is going to fill in the English field with the internal name. All end-user apps, regardless of their language settings, are going to display this internal name.
Important: The behavior described above is only compatible with end-user apps that implement it. In other words, some end-user apps can still display the internal name even if you entered translations. - Click Save.