Skip to main content
10-Marble
December 23, 2025
Solved

How to not expand model tree after using Find

  • December 23, 2025
  • 2 replies
  • 329 views

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?

Best answer by tbraxton

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

 

2 replies

tbraxton
22-Sapphire II
tbraxton22-Sapphire IIAnswer
22-Sapphire II
December 23, 2025

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

 

Matthijs110-MarbleAuthor
10-Marble
December 24, 2025

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

16-Pearl
December 26, 2025

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

tbraxton
22-Sapphire II
22-Sapphire II
December 23, 2025

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.