Skip to main content
10-Marble
Dec 23, 2025 8:50 AM UTC
Solved

How to not expand model tree after using Find

Hello everyone,

 

I'm building some mapkeys to create some basic functionality that PTC forgot to add in the past 10 years. To do this I'm using the "find tool", which works okay-ish. You can't use the saved query mode though, because sometimes it takes too long to load the query and then it's already finished doing all the mapkey commands, so you have the build the query every single time in the mapkey.... But I'm getting sidetracked.

 

Right now I'm building a mapkey that hides all fasteners in the model. So I use the find tool to look for all fasteners and then hide them. However after running the mapkey, my whole model tree is expanded to the level where every single fastener is.

I have tried changing auto_locate_in_tree to every possible option but that only works for items you select by clicking on them.

I don't want to use collapse all, because if I was already deep in the tree when running the mapkey, I'd have to dig again.

 

Any ideas on how to do this?

tbraxton
tbraxtonAnswer
22-Sapphire II
Dec 23, 2025 4:47 PM UTC

The search tool has an option to highlight in the tree, try turning that off in the option when recording the mapkey.

 

tbraxton_0-1766508451887.png

 

4 replies

tbraxton
tbraxton22-Sapphire IIAnswer
22-Sapphire II
Dec 23, 2025 4:47 PM UTC

The search tool has an option to highlight in the tree, try turning that off in the option when recording the mapkey.

 

tbraxton_0-1766508451887.png

 

Translate
Matthijs110-MarbleAuthor
10-Marble
Dec 24, 2025 8:13 AM UTC

That works, thanks. However it sucks I apparently need the Advanced license to even pick the "family table instances" option in "property" for "Solid Model". Yet another cash grab for an unfinished product. Guess we'll have to create a workaround, like with everything in this joke of a cad program

Translate
16-Pearl
Dec 26, 2025 11:12 AM UTC

Hi

 

If you want to hide all fasteners, I think the best way is with Simplified Reps + Rules

 

Look at this thread

 

Also this youtube video minute 16

Translate
tbraxton
22-Sapphire II
Dec 23, 2025 5:43 PM UTC

A quick test in Creo 10 revealed an unexpected result. It does not look like the options settings are not saved with a query when writing it to disk. In light of this you would need to explicitly unselect highlight items option in your mapkey sequence. I would suggest that you make a mapkey specifically to unselect this option and nest it as required in any new mapkey creation.

Translate