Map Pline Set Names to Profile Shapes
- Last UpdatedJan 23, 2023
- 1 minute read
Once you have defined their generic shapes you need to be able to map the Pline set names to that shape. This is done by filling in a mapping file of PML objects in the bocusercataupgr.pmlfnc macro file. The first set in the UserMap array may have to be modified, and you may have to extend the list for their own additional specific shapes.
For example, a complete mapping for a Pline set consists of the following:
-- Map Shapes to generic update macros
!TShape = |!!BOCUpgradeT|
!IShape = |!!BOCUpgradeI|
!OShape = |!!BOCUpgradeO|
!CShape = |!!BOCUpgradeC|
!LShape = |!!BOCUpgradeL|
!RHSShape = |!!BOCUpgradeRHS|
!BULBShape = |!!BOCUpgradeBULB|
-- >>>> User to add any specific shapes here
-- !USERAShape = |!!BOCUpgradeUSERA|
-- >>>> User Map definition between PTSS and Shape code
!UserMap = ARRAY
!UserMap[ 1 ] = object BOCMAPOBJ
!UserMap[ 1 ].Name = |/USER-PTSS-I|
!UserMap[ 1 ].Macro = !IShape
!UserMap[ 1 ].Args = |(false)|
This means that the Pline set (PTSS) named /USER-PTSS-I is to be modified using the PML macro represented by the variable !Ishape.
Further up, you can see that the !IShape variable is associated with the macro !!bocUpgradeI( ). The args value is true or false depending on whether the catalogue to be updated is based on the old or new catalogues. This is most important when considering C or L shaped profiles where the orientations change.