I created this macro to set the construction depth ending up in 2D mode even if I started out in 3d. If I run this macro while I'm in 2d, I end up back in 2d. If I run it in 3d I end up in 3d. what can I do to get what I want. I tried looking in your book. I don't quite understand how to control 2d-3d mode.
// Begin KXL Record
// This kxl is intended to be a Macro Script
MASKCLEAR
// (0xAA54) Set the construction depth
MASKENTITY 0, 1, 41, 2, 3, 4, 5, 6, 7, 30, 27, 41, 9, 10, 40
// (0xAA32) Pause KXL recording
// Paused for user input
CLEAR xp, yp, zp, adp
DOUBLE xp, yp, zp
GETPOS "Indicate position at new depth", 1
if (@error != 0)
exit
xp = @xworld
yp = @yworld
zp = @zworld
DOUBLE adp[3] = { @xworld, @yworld, @zworld }
SET DEPTH, @zcplane + @depth
MASKCLEAR
// (0xAA32) Pause KXL recording
// Regular recording resumed
// End KXL Record
Thanks In advance
Ken