Create a Simple Attribute
You can create an attribute stored in the database.
_ character
only.-
Click the type or extension to which you want to add an attribute.
The line corresponding to the selected type or extension turns pink.
-
In the Attributes List frame, click New
Simple
.
The Create New Attribute window opens. -
Define the attribute as follows:
-
In the Name field, enter a name for your attribute.
Note: Names can only contain alphanumeric characters and the underscore character.
The Package prefix is automatically added at deployment.
-
Select its type in the Type list.
When using magnitudes, use the Magnitude chooser. For an attribute with a magnitude, the default value is expressed in the preferred unit. If you change this unit, the default value is reset.
- Select the unit if need be.
-
In the Multivaluated list, select
trueorfalse.- Multivaluated attributes are available for IRPC modelers only.
- A multivaluated attribute can have authorized values.
-
If need be, enter the authorized values. If you want to add multiple values,
enter the first value into the Authorized values field, then
click + to display additional boxes.
- Only [a-z][A-Z][0-9] characters are supported.
- This field is disabled if you work with Boolean attributes. You can remove a value by clicking -.
- The Add an authorized empty value option lets you add an empty value to the authorized values when working with String attributes. When you define this option, the default value is automatically the empty value.
- Depending on the database, the authorized values you have entered may appear
in a different order on your Data Model Customization
app and on the user interfaces of the end-user apps. They may also appear in a different order when you export/import the
packages that contain them. If you want the authorized values to appear in a
specific order on the desktop apps, use a mask.Note: You cannot control the display order of authorized values on any web apps.For more information, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Security Management | Security Mask Configuration | Security Mask Configuration | Mask Syntax.
- 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.
-
In the Default Value field, enter a value. If you defined
authorized values, your default value must be one of these values.
- If you want to enter a date, use the Date Picker
.Note: The latest date supported is: 01/01/2200. - 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.
- If you want to enter a date, use the Date Picker
-
In the Length field, enter the maximal length of the
attribute.
Leaving this box blank or entering 0 means no limit.
This box only makes sense for attributes of
Stringtype.Recommendation: To optimize the storage resources, define a length that is less than 1000. -
From the User Access list, select one of the following:
- ReadWrite - the attribute value can be modified.
- ReadOnly - the attribute value can only be modified through a business rule.
- None - the attribute is never displayed and can only be valuated by a business rule.
- From the Reset when Duplicated list, select true if you want the attribute value to be reset when the object owning the attribute is duplicated.
- From the Reset when versioned list, select true if you want the attribute value to be reset when a new object version is created.
-
From the Integrate in 3DXML list, select
true if you want to add the type and the attribute to a 3D
XML file. If you select true, you also need to define the
CustoTool_3DXML_Exportablevariable. -
From the Searchable list, select
true if you want the values for this attribute to be used
as search criteria.
When enabled, you can use 3DSearch for filtering in the Advanced Search. If you also selected a tag name for 6W Predicate, the attribute can be used in Tags filtering.
- From the V6/XPDM Exportable list, select true if you want to flag an attribute exportable by default during V6/V6, V6/XPDM data exchanges in briefcases.
-
From the Mandatory User Input list, select
true to require end users to enter a value, or select an
authorized value (if you defined any), when they are creating an object.
Note: This option is only compatible with end-user apps that take it into account. In other words, some end-user apps may still allow end users to save their object even if they do not enter or select any value.
-
In the Name field, enter a name for your attribute.
- Click Done when you are done with the attribute creation.
Result: The attribute is created.
- The Nature column indicates if the attribute is of Simple or of Transient type.
- The Deployed column indicates if the attribute is deployed (yes), not deployed (no), or partially deployed (partial), which means that the attribute has already been deployed at least once but has been modified since its deployment.
- The Type column displays the attribute type.
- The Default Value column displays the value.
- The Keys (Package) column shows the keys that constrain the extensions.