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.
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)
rlyr: Rlayer
Once the address for the layer you want is stored in the record, you can call...
lyr_set(rlyr.addr)
The DCAL for Delphi sample LyrRename uses the Rlayer variable.
Who is online
Users browsing this forum: No registered users and 36 guests