Applies To:
  • CitectSCADA 5.xx, 6.00

Summary:
When calling the functions DspGetAnHeight, DspGetAnExtent, DspGetAnWidth, DspGetAnTop, DspGetAnLeft, DspGetAnBottom and DspGetAnRight with a rectangle, circle or polygon object the function returns zero

Solution:
The reason why these functions return zero is because during run time the rectangle, polygon or circle objects become static and are part of the main graphics page. To make the objects dynamic and hence return the correct value whenever the above Cicode functions are called, a simple workaround is to enter some characters in the description field properties of that object as shown below:



Citect has confirmed this to be a problem in CitectHMI/SCADA version 5.xx to 6.xx. We are researching this problem and will post new information here as it becomes available.
 

Keywords:
DspGetAnHeight, DspGetAnExtent, DspGetAnWidth, DspGetAnTop, DspGetAnLeft, DspGetAnBottom, DspGetAnRight, zero  

Attachments