• Not Answered

Placement Object issue Graphics Studio

I'm using the script example as it shows in Graphics Studio Help.  However, when I VERIFY in Script Assistant, I get the following:

bmpOpenModHisPic.Click1.Script(X: number, Y: number): void Cannot find name 'Placement'.
bmpOpenModHisPic.Click1.Script(X: number, Y: number): void Cannot find name 'PlacementOption'.
bmpOpenModHisPic.Click1.Script(X: number, Y: number): void Cannot find name 'PlacementAlignment'.

My code is:

let pos = new Placement(PlacementOption.Screen, "POET_TOOLBAR_1680");
pos.UseCachedPosition = false;
pos.Alignment =
PlacementAlignment.Bottom | PlacementAlignment.Center;
DL.OpenDisplayAsync(DL.DN("Mod_Hist_Aux"),[pos])

Examples
Example Result
if (!await DL.OpenDisplayAsync(DL.DN("Reactor4"))) {
     // do something dealing with the display not being found
}
// direct display to open at bottom-center of the "OVVW" Screen // for Layouts that have it
let pos = new Placement(PlacementOption.Screen, "OVVW");
pos.UseCachedPosition = false;
pos.Alignment =
     PlacementAlignment.Bottom | PlacementAlignment.Center;
DL.OpenDisplayAsync(DL.DN("EnergyUse”), [pos]);