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: 

macro snapshot matière restante

0 REPLIES 0
Reply
Message 1 of 1
didier_bruon
252 Views, 0 Replies

macro snapshot matière restante

Bonjour je souhaiterai réaliser une macro pour faire des snapshot de la matière sur chaque programme CN 

J'ai commencé un bout de code mais il ne fonctionne pas

Je vous remercie pour votre aide

 

Capture d’écran 2021-07-28 153654.gif

 

 

STRING $StockmodelName = 1
STRING $FEU_ORG = 0
INT $Index = 0

			
FOREACH $stock IN entity('stockmodel',$StockmodelName).States {	
	IF ($stock.locked == 0) {
		EDIT STOCKMODEL "1" ACTIVATE StockmodelName $Index
	} ELSE {
		$Index = $Index + 1
	}
	FOREACH FEU_ORG IN folder("NCProgram\Partie_Mobile\Feuille_Org_PM") {
		ACTIVATE NCProgram FEU_ORG.Name
		EXPLORER SELECT NCProgram "NCProgram\Partie_Mobile\Feuille_Org_PM\FEU_ORG.Name" NEW
		KEEP SNAPSHOT NCPROGRAM FEU_ORG.Name CURRENT	
	}	
}

 

 

Labels (3)
0 REPLIES 0

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report