Site Logo
Site Logo
 
It is currently Sun Apr 02, 2017 6:43 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Calculation in electrode template possible?
PostPosted: Mon Feb 29, 2016 6:39 am 
Offline
DELCAM User
DELCAM User

Joined: Tue Feb 17, 2015 7:15 pm
Posts: 29
Hello,

I would like to get the dimension from electrode holder base to the electrode base surface. This could be done with simple calculation (%[z]-%[zmin]+%[electrode_height]+%[base_height]), but I can't get it to work.

Is there a possibility to perform calculations with template variables?


Top
 Profile  
 
 Post subject: Re: Calculation in electrode template possible?
PostPosted: Mon Feb 29, 2016 2:21 pm 
Offline
DELCAM Staff
DELCAM Staff
User avatar

Joined: Wed Mar 01, 2006 12:09 pm
Posts: 98
Location: Delcam, Birmingham
Evaluations must be placed within %eval{} blocks

so

%eval{%[z]-%[zmin]+%[electrode_height]+%[base_height]}

Should do what you want.


Top
 Profile  
 
 Post subject: Re: Calculation in electrode template possible?
PostPosted: Mon Feb 29, 2016 3:49 pm 
Offline
DELCAM Guru
DELCAM Guru

Joined: Wed Jun 04, 2008 9:12 am
Posts: 321
Location: Devon, UK
%eval{%[height] - %[base_height]}


Dan


Top
 Profile  
 
 Post subject: Re: Calculation in electrode template possible?
PostPosted: Tue Mar 01, 2016 9:11 pm 
Offline
DELCAM User
DELCAM User

Joined: Tue Feb 17, 2015 7:15 pm
Posts: 29
DanMcDan wrote:
%eval{%[height] - %[base_height]}


Dan


Yes I got it working now.

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB