I am trying to set the number of orthmode divisions, but it is not working...
The variable I am setting is PGsavevar^.numdivs, and the value there is being set correctly (have examined in debugger), but it is not impacting the orthmode setting at all.
Below is the relevant bit of my code:
Does anybody know if PGsavevar^.numdivs is the correct variable to be setting? ... or any other suggestions as to why my logic is not working?
Note: If I set snap angle divisions to 2 in the grid settings in DataCAD before invoking the macro then it performs as expected.
Many Thanks,
David H.
The variable I am setting is PGsavevar^.numdivs, and the value there is being set correctly (have examined in debugger), but it is not impacting the orthmode setting at all.
Below is the relevant bit of my code:
Code: Select all
l^.svOrthMode := PGsavevar^.orthmode;
l^.svNumDivs := PGsavevar^.numdivs;
PGsavevar^.orthmode := true; // try to force them to select a point at
PGsavevar^.numdivs := 2; // the same Y value as prev point
rubln^ := true;
wrtmsg ('Select point to indicate X value of 2nd baseline point');
getpointp(vmode_orth, false, l^.getp, retval);
Does anybody know if PGsavevar^.numdivs is the correct variable to be setting? ... or any other suggestions as to why my logic is not working?
Note: If I set snap angle divisions to 2 in the grid settings in DataCAD before invoking the macro then it performs as expected.
Many Thanks,
David H.
David Henderson
dhSoftware - Add-on Macros for DataCAD
dhSoftware - Add-on Macros for DataCAD