navigate  
  Home
Contact Us
Store
Library
Forums
 
     

  Forums

Forums » Customization » Setting Depth Messages in this topic - RSS
|
03.03.2006 14:28:16
Ken LeMay
Ken LeMay
Posts 9

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



--
03.03.2006 15:55:04
CKDExpert
CKDExpert
Posts 131

Ken,
If you use this:


CallFunc 0xAA78


It will togel the 2D/3D mode. Is this what you are after?

pages: 1
|

Forums » Customization » Setting Depth