Topic Title

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.

With the above code I am getting ' (LOCKED)' appended to layer names pretty much at random. Have I done something obviously wrong here or is the lyr_isLocked function buggy ? (I am using Dcad 20.01.00.04).

I'm not sure why it would be giving you unpredictable results. If you modify your code to call "lyr_get" you could inspect the .group field of the Rlayer record. If that field is equal to -1, the layer is not locked.

Happy send you the entire project source if you want to debug it etc to see why it is returning incorrect values, but the workaround you suggested seems to working ok.

I was working on a simple Text Replace macro as an exercise to re-familiarise myself with D4D. (It is now completed and available for download from my web site for anybody that is interested.) It will only process normal text entities, as I don't think MText or PText are accessible from DCAL or D4D (?). Any chance that these entity types will be accessible by D4D in the future ?