AXIAL THICKNESS VALUE AS Variable

This widget could not be displayed.

AXIAL THICKNESS VALUE AS Variable

Anonymous
Not applicable

While creating a toolpath, I wish to enter the value of the parameter Axial thickness by taking an INPUT from the user. I created a variable X and asks the user to input its value, but when I try to pass this value to the axial thickness, it shows an error.

Can you please tell me the error in my code?

and how to enter this particular value in the automatic verification as well.

Thanks

 

 

 

 

RENAME TOOLPATH "1" $toolpath_name
EDIT TPPAGE SWBlock
EDIT TPPAGE TOOL
EDIT TPPAGE SWDrilling
EDIT DRILL TYPE DEEP_DRILL
EDIT DRILL TOP BLOCK
EDIT DRILL DEPTH HOLE
EDIT TOOLPATH LEADS PLUNGEDIST "5"
EDIT DRILL ISTAZ "3"
EDIT PAR 'AxialDepthOfCut.UserDefined' '1' EDIT DRILL PECK_DEPTH "0.5"
EDIT DRILL THICKNESS "-1"

REAL $X = INPUT "Enter the value"
toolpath_name.Name.Drill.AxialThickness = $X
EDIT TPPAGE SWAutoVerifMdlG
EDIT PAR 'Thickness' "-1"
EDIT TPPAGE SWLeadsLinks
EDIT TPPAGE SWFeedSpeed
EDIT TPPAGE SWDrilling
EDIT TOOLPATH $toolpath_name CALCULATE
EDIT TOOLPATH $toolpath_name REAPPLYFROMGUI

0 Likes
Reply
346 Views
1 Reply
Reply (1)

5axes
Advisor
Advisor

Replace

 

REAL $X = INPUT "Enter the value"
toolpath_name.Name.Drill.AxialThickness = $X

 

By

 

REAL $X = -1 // Define X with a default value for the input function

$X = INPUT "Enter the value"

EDIT DRILL AXIAL $X

 

 

You can also use your notation Drill.AxialThickness = $X  but in that case use :

 

$Toolpath.Drill.AxialThickness = $X   // $Toolpath = Default variable for the active toolpath

 

OR beter

 

ENTITY('Toolpath',$toolpath_name).Drill.AxialThickness = $X

 

 

To input this value in the auto verification parameter just use :

 

EDIT PAR 'AxialThickness' $X

 

 

0 Likes