Creo Macro for Supressing Features
Creo Macro for Supressing Features
(OP)
Hello,
I'm trying to create a Macro that creates a Family table for a part or an assembly and goes through all the Hole features in the Model tree and suppresses all CSK holes. I want to do this because I have a sheet metal part I would like to do FEA on and use the Shell Pair simplifaication which doesn't like countersinks.
I know in the Feature Information of Holes there's a Countersink Element Name column which I'm guessing can be used for this but I'm not sure how to go about it.
I'm trying to create a Macro that creates a Family table for a part or an assembly and goes through all the Hole features in the Model tree and suppresses all CSK holes. I want to do this because I have a sheet metal part I would like to do FEA on and use the Shell Pair simplifaication which doesn't like countersinks.
I know in the Feature Information of Holes there's a Countersink Element Name column which I'm guessing can be used for this but I'm not sure how to go about it.
RE: Creo Macro for Supressing Features
See: http://support.ptc.com/help/creo/creo_pma/usascii/...
That said, if it can work -
The first step is to create a search/query that finds them all. Not sure how it can work in an assembly unless they are assembly level features, but for parts it should.
Go for the binoculars (pretty sure they will still use that) to search for that feature type. Once you have a working search you can save it.
It used to be that macros were just mapkeys, which are just replays of previously recorded actions. You might have to record creating the search/query and then select all the csk features with that search and suppress them and base the mapkey on that.
See: https://support.ptc.com/help/creo/creo_pma/r9.0/us...
The result of saving the query is to create a layer for those items. Really, PTC should have called it a list because that's how PTC uses them - as lists of items. In regular CAD an item can be only on one layer; with PTC an item can be on multiple lists.
After they are on a layer, then you may be able to open then instance and delete all the items on that layer. They will be marked suppressed in the family table for that instance.