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
Solved! Go to Solution.
Solved by rafael.sansao. Go to Solution.
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
Can't find what you're looking for? Ask the community or share your knowledge.