Macro Parameter help!!!!

Macro Parameter help!!!!

PGI-49
Contributor Contributor
707 Views
2 Replies
Message 1 of 3

Macro Parameter help!!!!

PGI-49
Contributor
Contributor

Good afternoon people!  I need so help with macro writing!  I am attempting to write a macro that will completely program a part for us and I apparently am having writers block.  Basically I have a pause in the macro for the user to click on the top of the part so the number can be set into the toolpath limit.  Then I want that number to have 15mm taken off of it.  I can't seem to recall on how to properly program the code to retrieve the Z limit number and then have 15mm removed from it......its driving me nuts and I know it's something simple....so If anyone can help!  I know the line I have circled is wrong I'm just putting it in for reference

 

kwarren6BRYB_0-1624296046609.png

 

0 Likes
Accepted solutions (1)
708 Views
2 Replies
Replies (2)
Message 2 of 3

rafael.sansao
Advisor
Advisor
Accepted solution

 

$ZRange.Minimum.Value = $ZRange.Minimum.Value - 15

 

Rafael Sansão

OptiNC - www.optinc.tech

EESignature

0 Likes
Message 3 of 3

PGI-49
Contributor
Contributor

YES!  THANK YOU!

 

I can't believe I couldn't remember that........ugh, Mondays

0 Likes