As an Architect, you can set constraints on the Add, Paste and/or New options typically available for creating parts. For example, you may want to allow users to Add existing signal ports, but not create New ones.



Prerequisites

  • Assignment of the SW Architect role in the database
  • An installation of the SystemWeaver Architect (swArchitect).


  1. In the type structure tree, select the part type for which you want to define a constraint. 
  2. Click Edit Config.

  3. Define the desired constraint expressed using an XML element.
    <PartTypeConfig>
    (constraint)
    </PartTypeConfig>
  4. Click OK to save your changes. 


The following constraints are supported:


<AllowAddPart value=""/>

<AllowNewPart value=""/>


The attribute value for both of these tags can be 'true' (default) or 'false'.


<AllowAddPart> 

Defines if it should be possible to perform an Add action in the GUI, i.e., create a new part using an existing item. (This includes actions with corresponding effect, like Paste.)


<AllowNewPart>

Defines if it should be possible to perform a New action in the GUI, i.e., create a new part using a likewise new item. (This includes actions with corresponding effect, like Another.)


Example

<PartTypeConfig>
  <AllowAddPart value="false"/>
</PartTypeConfig>


Result

Parts can only be created when a new item is created at the same time, using the New option in the structure tree. The Add or Paste options will not be available.


Note: This only restricts the behavior in the Explorer client. It does not restrict API users.