This chapter contains a reference to the syntax used by ORCA1 and SDT when referring to entities managed by ORCA and SDT.
Through these references, the ORCA and SDT environment provides, among other, a means to:
The concept "GR reference", introduced in the SDT 2.X tool family, has been extended in order to support references to virtually all entities that are managed in an ORCA and SDT 3.X environment (or will be managed in future versions):
The term GR reference has been replaced by the term SDT reference. It is possible to retrieve SDT references from the ORCA and SDT tools using commands such as Show GR Reference in the SDL Editor, and to show the source that matches a reference using commands such as Go To Source in the Organizer.
Below follows the syntax for an SDT reference:
<SDT_Reference> ::= `#SDTREF' `(' ( <SDT_GR_Ref> | <SDT_Textfile_Ref> | <SDT_MSC_Ref> | <SDT_HMSC_Ref> | <SDT_OM_Ref> | <SDT_SC_Ref> ) `)' <SDT_GR_Ref> ::= `SDL' `,' <FileName> [ `(' <PageName> `)' ] [ `,' <ObjectId> [ <Object_Coordinates> ] [ `,' <LineNumber> [ `,' <Column> ] ] ] <SDT_Textfile_Ref> ::= `TEXT' `,' <FileName> [ `,' <LineNumber> [ `,' <Column> ] ] <SDT_MSC_Ref> ::= `MSC' `,' <FileName> [ `,' <ObjectId> [ `,' <LineNumber> [ `,' <Column> ] ] ] <SDT_HMSC_Ref> ::= `HMSC' `,' <FileName> [ `(' <PageName> `)' ] [ `,' <ObjectId> [ <Object_Coordinates> ] [ `,' <LineNumber> [ `,' <Column> ] ] ] <SDT_OM_Ref> ::= `OM' `,' <FileName> [ `(' <PageName> `)' ] [ `,' <ObjectId> [ <Object_Coordinates> ] [ `,' <LineNumber> [ `,' <Column> ] ] ] <SDT_SC_Ref> ::= `SC' `,' <FileName> [ `(' <PageName> `)' ] [ `,' <ObjectId> [ <Object_Coordinates> ] [ `,' <LineNumber> [ `,' <Column> ] ] ] <FileName> ::=File name
<PageName> ::=name of a page according to SDT3.X rules
<ObjectId> ::=integer, unique id for object
<Object_Coordinates> = `(` <x-coord> `,' <y-coord> `)' <x-coord> ::=x coordinates in mm from upper left corner
<y-coord> ::=y coordinates in mm from upper left corner
<LineNumber> ::=line number within symbol or file
<Column> ::=column within the line
Below follow some examples of SDT references.
Reference | Explanation |
---|---|
#SDTREF(MSC,test.msc) |
MSC |
#SDTREF(MCS,test.msc,10) |
Symbol in MSC |
#SDTREF(MCS,test.msc,10,5) |
Line within symbol |
#SDTREF(MCS,test.msc,10,5,15) |
Column at line within symbol |
Reference | Explanation |
---|---|
#SDTREF(TEXT,test.pr) |
Text file |
#SDTREF(TEXT,test.pr,10) |
Line in text file |
#SDTREF(TEXT,test.pr,10,15) |
Column at line |