Section Pline Realign Rule Definition
- Last UpdatedOct 26, 2023
- 3 minute read
When the import function adjusts the justification of the GENSECs, the interface follows the rules defined by the Justification Line Rule Definition window prompted by Section Pline Realign Rule Definition.


In the Justification Line Rule Definition window, various section rules can be defined, the interface processes the rules to find the matching rules for the imported sections, and sets the Justification Line for the sections accordingly.
Create and Remove are used to add or remove a rule.

Seq defines the sequence of the rules. The interface processes the rules in ascending order and stops when find the first matching rule is found.

A rule can use the Styp attribute of the GENSEC, the Spref attribute of the GENSEC, or the name of the Spec hierarchy of the Spref attribute of the GENSEC. If the text box is left bank, the condition is ignored.

UD Express is a user defined expression that returns true or false. The interface navigates to the GENSEC element (the Current Element is the GENSEC) and runs the expression. The expression can be a PML expression or a PML Function. For example,
" !!saiJLIsHorizontal() " is a PML Function, and " purp of owner eq 'BRAC' " is a PML expression. Here is an example of a PML Function to check if the GENSEC is a vertical one:
define function !!saiJLIsVertical() is boolean
!element = !!ce
if(!element.badref() or !element.type neq 'GENSEC')then
return false
endif
!Posstart = !element.Posstart
!Posend = !element.Posend
if(!Posstart.north eq !Posend.north and !Posstart.east eq !Posend.east)then
return true
else
return false
endif
endfunction
Note:
These example functions are provided with SAI in the %PMLLIB% folder.
Select the Pline to use for this profile. Select TOP/NA/Bottom, the interface checks and sets the appropriate Pline for the GENSEC according to the Pline of the GENSEC. Alternatively, input a specific Pline name in the text box.

Note:
If there is a GENSEC that doesn't match any of the rules in the list, its jusline
is set to NA as default.