Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Assigning Values to Element Attributes

  • Last UpdatedFeb 08, 2023
  • 1 minute read

You can assign a new value to a DBREF attribute, ensuring that the type of the new value matches the type of the attribut

!!CE.Built = TRUE

You can still assign an attribute value in this way even if the PML DBREF is not the current element':

!A = !!CE

!!CE = !!CE.Owner

!A.Built = TRUE

You can even assign a PML object, such as POSITION, where this corresponds to the type of the attribute:

!!CE .Position = !NewPosition

Note that where the type of an attribute is a PML object, it is not possible to set an object member value, such as the up value of a POSITION, directly ‑ this must be done in two stages:

!Pos = !!CE.Position

!Pos.Up = 2000

!!CE.Position = !Pos

Related Links
TitleResults for “How to create a CRG?”Also Available in