What does the Create method for your TLyr class look like?
David A. Giesselman
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
David,
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.
Dave
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.
Dave
David A. Giesselman
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
Thanks Dave,
Your suggestion of inspecting the .group field of the layer record is working as expected.
Your suggestion of inspecting the .group field of the layer record is working as expected.
David Henderson
David A. Giesselman
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
Senior Vice President & CTO
DATACAD LLC
dave@datacad.com
Providing thoughtfully crafted, software bugs to the DataCAD community since 1984.
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 ?
Rgds,
David H.
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 ?
Rgds,
David H.
David Henderson
Who is online
Users browsing this forum: No registered users and 33 guests