Mandatory Attributes for Templates

Your organization may require that each design includes certain information.

To ensure that the design is not created without that information, you can define attributes as mandatory for the template.

Run the following MQL commands.

Run MQL from the Live Collaboration Server folder or from 3DSpace. For more information, see Installation and Setup | Administrate | 3DEXPERIENCE Platform | 3DSpace | Collaboration and Approvals | Administrative Utilities | Running MQL

Mandatory attributes must have valid values entered when the user executes the Start Design process. If you need to define attributes as mandatory, you need to use MQL. See the MQL Concepts for details on using that tool.

For each mandatory attribute you want to define for a template, use MQL to enter this command:

add property mandatory on attribute ATTRIBUTE_NAME to type TYPE_NAME;

where ATTRIBUTE_NAME is the mandatory attribute and TYPE_NAME is the template object.

If you define an attribute as mandatory, you should provide valid values for that attribute in the Template object. To define range values:

MQL>modify attribute <ATTRIBUTE_NAME> add range RELATONAL_OPERATOR VALUE or

MQL>modify attribute <ATTRIBUTE_NAME> range PATTERN_OPERATOR PATTERN or

MQL>modify attribute <ATTRIBUTE_NAME> range between VALUE {inclusive|exclusive} VALUE {inclusive|exclusive}

eg:

MQL>modify attribute Quantity add range between 10 inclusive 20 inclusive;