Hi Nino,
There are no macros for the XWIDTH and YWIDTH. They can be set in the GUI and then will be in autosave. Or you can do a dbpf to those PVs at the end of the startup script.
[X,Y]Width=0 is not recommended. The behavior of the [X,Y]Width is documented here:
https://areadetector.github.io/master/ADCore/NDPluginOverlay.html. It says:
The X line width of this overlay. For the cross overlay this will increase the width of the line on both sides at the same time, to maintain the central point of the cross. For the rectangle and ellipse overlays
the line thickness will grow inwards to the center. For cross overlay shapes the widths >1 are restricted to even numbers; odd widths >1 are decreased by 1.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Miceli, Antonino via Tech-talk
Sent: Wednesday, February 5, 2020 3:33 PM
To: tech-talk at aps.anl.gov >> EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: Piatak, Christopher <cpiatak at anl.gov>
Subject: Loading NDOverlayN.template
We are trying to load overlays in AD and would like to change the X and Y widths to be non-zero (this causes endless problems from users since a rectangular overlap won't display
with width =0, but a cross will!).
I would guess that I just have to say YWIDTH=1, XWIDTH=1 but this does not seem to work. For example, in the commonPlugins.cmd:
dbLoadRecords("NDOverlayN.template","P=$(PREFIX),R=Over1:1:, NAME=Box1, YWIDTH=1, XWIDTH=1,SHAPE=1,O=Over1:, XPOS=$(PREFIX)ROI1:MinX_RBV, YPOS=$(PREFIX)ROI1:MinY_RBV, XSIZE=$(PREFIX)ROI1:SizeX_RBV,
YSIZE=$(PREFIX)ROI1:SizeY_RBV, PORT=OVER1,ADDR=0, TIMEOUT=1")