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: 

help macro please

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
563 Views, 1 Reply

help macro please

Hi all,

 

I created a macro that creates 3 workplanes and toolpaths.

But i would like that the macro asks the amount of holes and then execute this macro.

Maybe with a loop? But i have no idea how to get it working.

 

 

thanks

 

 

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

When you are defining a variable that is going to be of a numerical value you should make it an INT or REAL type variable.  I'm not sure what portion of your code you want in a loop, but here is a basic structure of how it could work:

INT $Screws = INPUT "Enter Number of Screws Used"
INT $Counter = 0

WHILE $Counter < $Screws {
$Counter = $Counter + 1
// Code you want execuded in a loop here



//End of your code
}

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report