Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Integer in Macro

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
louis_walmsley
253 Views, 2 Replies

Integer in Macro

I'm trying to create a macro using INT to always round UP the Z Max to the nearest integer in the block form - for example
ZMax = 34.245mm - use the Macro to round it UP to 35mm

 

And for this to work in all cases. Has anyone done anything similar?
Thanks!

Tags (2)
2 REPLIES 2
Message 2 of 3

 

IF INT($Block.Limits.ZMax) < $Block.Limits.ZMax {
	EDIT BLOCK ZMAX ${INT($Block.Limits.ZMax) + 1}
}

 

Rafael Sansão

EESignature

Message 3 of 3

Thanks Rafael. Worked perfectly!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report