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.
#75653 by Mark F. Madura
Thu Feb 07, 2019 2:08 pm
Tracing through the debugger in DataCAD, the procedure lyr_set makes a call to valid_addr which returns false and the subsequent call to lyr_setcurr never gets called.
#75654 by Mark F. Madura
Thu Feb 07, 2019 3:33 pm
I'm still digging into this a bit. It looks like you'll have to declare a layer record to store the layer address.

rlyr: Rlayer

Once the address for the layer you want is stored in the record, you can call...

lyr_set(rlyr.addr)

Who is online

Users browsing this forum: No registered users and 36 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