Kubotek Forum

KeyCreator & KeyCreator Viewer Technical discussion of CAD/CAM and integrated partner products
Subscribe to post
User avatar
Soli - (9/16/2021 9:42:53 AM)
RE:Why not 2D/3D anymore and where in the world did Z Free and Z Lock come from??

I wrote and I use an utility to set the construction plane and 2D depth.
This helps me to place fasteners in the correct place by selecting center holes which are in different depth. 

===================================================
// Begin Macro Record
// This Macro is intended to be a Macro Script
set Const3D , 1
MASKCLEAR
MaskEntity  3 , 43
Prompt "SELECT A FACE OR A CIRCLE; PRESS ENTER TO CONTINUE" , 3
WAIT 0.5
callfunc 0xAA21// Select a new cplane
 
CLEAR position , hPosEnt
DOUBLE position[3]
HEntity  hPosEnt
type_pos=0
 
Set PosSnap, 1
Set PosSnapPnt, 0
Set PosSnapEnd, 0
Set PosSnapCtr, 0
Set PosSnapMid, 0
Set PosSnapQuad, 0
Set PosSnapTan, 0
Set PosSnapX3D, 0
Set PosSnapX2D, 0
Set PosSnapCtr, 1
 
GETPOS "SELECT A POINT FOR DEPTH", type_pos, position ,  ,hPosEnt
if (@key == -3)
goto end
 
set Depth , @ZCPLANE
notestate
set Const3D , 0
notestate
 
:end
MaskClear 
======================================
Login