As an Architect, you can set constraints on the AddPaste and/or New, and Remove part(s)/Deleteoptions typically available for parts in, e.g., the structure tree and Parts view. 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=""/>

<AllowRemovePart 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.)


<AllowRemovePart>

Defines if it is possible to perform a Delete or Remove part(s) action in the GUI, i.e., delete a part.


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.