Create a Simple Attribute
You can create an attribute stored in database.
Note:
Attributes names can
contain alphanumeric characters and the underscore
_
character
only.-
Click the type/extension to which you want to add an attribute.
The line corresponding to the selected type/extension turns pink.
-
In the Attributes List frame, click New
Simple
.
The Create New Attribute window opens.
-
Define the attribute.
-
In the Name box, enter its name.
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
true
orfalse
.- 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 box and
click + to display additional boxes.
- 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 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 native end-user apps, use a mask.Note: You cannot control the order of display of authorized values on dashboard and web apps.For more information, see Installation and Setup > Customize > 3DEXPERIENCE Platform: 3DSpace > Security Management > Security Mask Configuration > Mask Syntax.
-
Enter its value in the Default Value box. If authorized
values are defined, your default value must be one of them.
If you want to enter a date, use the Date Picker .
-
In the Length box, 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
String
type.Recommendation: To optimize the storage resources, define a length that is less than 1000. -
Select the User Access in the scrolling list:
- 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.
- In the Reset when Duplicated scrolling list, select true if you want the attribute value to be reset when the object owning the attribute is duplicated.
- In the Reset when versioned box, select true if the attribute value must be reset when a new object version is created.
-
In the Integrate in 3DXML box, select
true if you want to add the type and the attribute to a 3D
XML file. You also need to define the
CustoTool_3DXML_Exportable
variable. - In the V6/XPDM Exportable box, select true if you want to flag an attribute exportable by default during V6/V6, V6/XPDM data exchanges in briefcases.
-
In the Name box, enter its name.
-
Click Done when you are done with the attribute creation.
Notes:
- To display the attribute in the list, click the type it is related to:
- 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.
- To display the attribute in the list, click the type it is related to: