The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#75975 by dhs
Wed Mar 13, 2019 4:35 pm
Hi,
Classic DCAL defined GridOrgX and GridOrgy processing variables. You could assign vales to these to change the grid origin on the current layer.

I have not found any direct equivalents to these in D4D, but the layer record contains a GridOrg field, so I assumed that assigning a value to this field would update the grid origin for the appropriate layer. But this does not appear to be the case.

I have the following code:
Code: Select all        if l.getp.Result = res_normal then begin
          if lyr_get (getlyrcurr, rlyr) then
            rlyr.gridorg := l.getp.curs;

The above code is updating the gridorg field correctly, but the grid origin is not being updated (e.g. the snap origin is not being changed, regening the display (U) is not redisplaying the grids with the new origin).

Does anybody know what is the correct method to change the grid origin in DCAL for Delphi ?

Thanks,
David H

Who is online

Users browsing this forum: No registered users and 10 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984