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.
#20762 by devinder
Mon Feb 26, 2007 9:52 am
I am not receiving any crashes at lyr_first or lyr_clear call.
getlyrcurr - retrieves the address of current active layer .
lyr_first - retrieves the address of first layer in database.
lyr_clear - deletes all the entities from the layer whose address is provided.
#20828 by devinder
Tue Feb 27, 2007 9:26 am
The correct call declaration for lyr_clear is
Code: Select allPROCEDURE lyr_clear(var addr: lyraddr); stdcall; external AppName;

My header file was last updated on 8/26/2006 and had this fix and thus I was not getting any crash. I do not recall what had prompted me to make this change in my files and not inform at the DDN.

Who is online

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