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: 

editing hole depth

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
hrh46
246 Views, 2 Replies

editing hole depth

please help me with this code, I dont know whats my mistake, I want to change depth of holes.

 

reset localvars
Real $NewDepth = INPUT "Enter New Depth of Holes "
ENTITY LIST $Selected_Featuresets = INPUT ENTITY MULTIPLE FEATURESET "Select Desired Hole Featuresets "
FOREACH fsets in $Selected_Featuresets {
ENTITY fset = entity('FeatureSet', fsets.name)
ACTIVATE FEATURESET $fset.name
FOREACH feat IN components(fset) {
EXPLORER EDIT SELECTED FEATURES
EDIT FEATURESET ; FEATURE SELECTION $feat.name
EDIT FEATURESET ; FEATURE SELECTED COMPONENT SELECTED DEPTH $NewDepth
}
}

 

thanks in advance

 

2 REPLIES 2
Message 2 of 3
rafael.sansao
in reply to: hrh46

Try this:

Real $NewDepth = INPUT "Enter New Depth of Holes "
ENTITY LIST $Selected_Featuresets = INPUT ENTITY MULTIPLE FEATURESET "Select Desired Hole Featuresets "
FOREACH fsets in $Selected_Featuresets {
	ENTITY fset = entity('FeatureSet', fsets.name)
	ACTIVATE FEATURESET $fset.name
	EDIT FEATURESET ; DESELECT ALL
	FOREACH feat IN components(fset) {
		EDIT FEATURESET ; SELECT $feat.name
		EDIT FEATURESET ; FEATURE SELECTED COMPONENT SELECTED DEPTH $NewDepth
	}
	EDIT FEATURESET ; DESELECT ALL
}

 

Or:

Real $NewDepth = INPUT "Enter New Depth of Holes "
ENTITY LIST $Selected_Featuresets = INPUT ENTITY MULTIPLE FEATURESET "Select Desired Hole Featuresets "
FOREACH fsets in $Selected_Featuresets {
	ENTITY fset = entity('FeatureSet', fsets.name)
	ACTIVATE FEATURESET $fset.name
	EDIT FEATURESET ; SELECT ALL
	EDIT FEATURESET ; FEATURE SELECTED COMPONENT SELECTED DEPTH $NewDepth
	EDIT FEATURESET ; DESELECT ALL
}

Rafael Sansão

EESignature

Message 3 of 3
hrh46
in reply to: rafael.sansao

Many thanks to  rafael.sansao

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

Post to forums  

Autodesk Design & Make Report