Message 1 of 9
Creating a hole featureset based on depth type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this macro that I created that is supposed to create a separate hole feature set if a depth type of blind exists called EXCLUDED .625 DIA. HOLES BLIND in a hole featureset called EXCLUDED .625 DIA. HOLES.
I know it exists but all it does is loop through the featureset but doesn't select the blind hole and create a new feature set.
// Check if the EXCLUDED .625 DIA. HOLES feature set exists
IF entity_exists('featureset','EXCLUDED .625 DIA. HOLES') {
// Activate the feature set
ACTIVATE FEATURESET "EXCLUDED .625 DIA. HOLES"
// Select blind holes
EDIT FEATURESET ; DESELECT ALL
EDIT SELECTION CLEAR
EDIT SELECTION FILTER DEPTHTYPE "Blind"
EDIT SELECTION APPLY
// Check if any features were selected
IF SIZE(components($entity('featureset','EXCLUDED .625 DIA. HOLES'))) > SIZE(components($entity('featureset',''))) {
// Copy selected features to a new feature set
COPY FEATURESET ; SELECTED
RENAME FEATURESET # "EXCLUDED .625 DIA. HOLES BLIND"
}
}
Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro