cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

How to not expand model tree after using Find

Matthijs1
7-Bedrock

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?

2 REPLIES 2
tbraxton
22-Sapphire II
(To:Matthijs1)

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

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
tbraxton
22-Sapphire II
(To:Matthijs1)

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.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags