Function that lets you display text in a 3D viewer. The text is linked by an
arrow to an object which is under the viewer root. If you do not specify the
optional iViewer argument, this function is applied to the main
viewer.
Example
let fret(Feature)
for fret inside FretsList
{
if(fret.HasAttribute("Name_Icon"))
{
if(fret.GetAttributeString("Name_Icon")=="DoubleIndicator")
{
// Add the text "Double", anchored to fret, in the knowledge dialog viewer "Viewer3D1"
AddTextSymbol("Double",fret,Viewer3D1 )
// Add the text "Double", anchored to fret, in the main viewer
AddTextSymbol("Double",fret)
}
if(fret.GetAttributeString("Name_Icon")=="SimpleIndicator")
{
// Add the text "Simple", anchored to fret, in the knowledge dialog viewer "Viewer3D1"
AddTextSymbol("Simple",fret,Viewer3D1 )
// Add the text "Simple", anchored to fret, in the main viewer
AddTextSymbol("Simple",fret)
}
}
}