Distribute Drawings Across Several DEPTs - *12.1.SP4*
- Last UpdatedMay 17, 2023
- 2 minute read
Description
There is a new attribute on department (DEPT) elements that can be used to distribute drawings of the same type across different DEPTs. The attribute is called PADDXP/RESSION and is a compiled PML expression to be evaluated when creating a new drawing in order to find an appropriate DEPT element as the owner of the new drawing. The expression is evaluated against the drawing type of the new drawing and a typical example on how the PADDXP attribute can be defined to keep a single database type within a DEPT.
>set PADDXP (marpty eq 1)
Two different drawing types can be put in below the same DEPT like this:
>set PADDXP (marpty eq 1 or marpty eq 4)
There is a fallback implementation used when no appropriate DEPT can be found using the PADDXP attribute, or if the PADDXP attribute has not been set on any DEPT elements. This fallback implementation picks up DEPT name from the project definition file (for example, the d065-file), and it is the same mechanism as used prior to introducing the PADDXP attribute.
It should be noted that the REGI name is picked up from the d065 file as before, via the appropriate environment variable for example, SB_SDB_PADD.
Benefits
Drawings of the same drawing type can now be distributed across several databases, provided that the DEPT elements have been pre-created in the appropriate databases.
Compatibility Constraints
None
For More Information
Refer to User Guide Draft / Marine Drafting / Operator’ Instructions / FILE / NEW DRAWING.
Refer to User Guide Draft / Marine Drafting / User Guide / Model Viewing and General Drafting / Concepts / Drawings.
Affected Programs
Marine Drafting/Hull Design