How to show another filtered branch by code

  • 2
  • Question
  • Updated 3 years ago
After I only show a branch, the other branches are hidden or filtered. Now I want to show another one branch by code, how can I make it or how can I remove the filter condition?
Just as the result of this menu:

Thanks!
Photo of zhou jimmy

zhou jimmy

  • 9 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 2
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 344 Posts
  • 133 Reply Likes
Hi Jimmy,

Does this help.

ActiveDocument.Filter.RevealFilteredTopics()

(Update) - It seems this will only reveal Topics hidden using Filters and NOT the Show Branch Alone function.

Regards
Nigel

MAP for MindManager - more than 37 new functions taking MindManager to the next level. Become a MindManager Power User with MAP. Now with extended license plans for Enterprise and Education - Learn more at www.mapformindmanager.com
(Edited)
Photo of zhou jimmy

zhou jimmy

  • 9 Posts
  • 0 Reply Likes
Thanks Nigel for your reply!
I tried according to your instruction, and found the "RevealFilteredTopics" method does not work. There is nothing happend after this method runs.
Could you please try this method by macro for me? Thanks a lot! :-)
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 344 Posts
  • 133 Reply Likes
Hi Jimmy.

I did update the comment to say it does not work for Maps where Show Branch Alone has been applied. It only works if the Topics have been hidden using the Filter methods.

Nigel
Photo of zhou jimmy

zhou jimmy

  • 9 Posts
  • 0 Reply Likes
Is there any SDK document for "Filter" methods or for how to set filter condition by code? Thanks!
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 115 Reply Likes
It looks like the Show Branch Alone function is not available directly from the object model? I did some tests with Topic.Focus(), but this does the same as Topic.CenterInView()
Photo of zhou jimmy

zhou jimmy

  • 9 Posts
  • 0 Reply Likes
You are right.
So I wonder where can I find any SDK document for "Filter" methods.
(Edited)
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 115 Reply Likes
Unfortunately, the SDK has been neglected since MindManager version 7.
There is some more information with some links to existing documentation here: https://community.mindjet.com/mindjet/topics/object-model-mindmanager-15-for-windows
Photo of zhou jimmy

zhou jimmy

  • 9 Posts
  • 0 Reply Likes
Thanks for all of you, guys.
Could you please provide me any help document about the "Filter" methods? I'd like to see how to set filter condition through this function.
Photo of Antonio CLAVERIA

Antonio CLAVERIA

  • 4 Posts
  • 0 Reply Likes
thanks
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 115 Reply Likes
There is some information specifically about filtering on this page (including code examples):
 https://secure.mindjet.com/partners/devzone/7/mm7_object_model/Page128.html Please let me know if you can access the page.