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: 

Variables used in the Setup Stock form

1 REPLY 1
SOLVED
Reply
Message 1 of 2
john_lute
436 Views, 1 Reply

Variables used in the Setup Stock form

I have been reviewing the Powermill Reference Parameter page in search of variables so that I can retrieve and modify values set in the setup stock in my macros. For testing I have activated Echo Commands. When I type "print $Block.Limits.XMax"  in the command window, I receive the X max value in the form. I know this is not setup stock, but it is a test to validate correct syntax. When I type "print $setup.Stock.Limits.XMax" I receive and error "#ERROR: Invalid name". My goal is to read the values from the setup stock and include in my setup sheet.

Regards. 

Labels (4)
1 REPLY 1
Message 2 of 2
cfastNJWK6
in reply to: john_lute

You need to declare which setup you want to show the information for by the setup Name

print $entity('setup', 'SetupNameHere').Stock.Limits.XMax

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report