Can custom properties for a topic be programmatically collapsed or shown by macro? I know that that you can do this manually (hide/show) with the small green arrow after adding custom properties. But, I have a large map about would like to do this automatically. If so, can you share the code?
(PS. iterating though the branches to select the topics with custom properties, adding them to the document selection collection and then and then clicking on one of the topic arrows is painful, but, I am looking for a more positive way of doing this. )
It's a pity that there is no context menu on the items in the "Elements" page of the marker index task pane, and no way to filter topics with custom properties in the power filter.
Sub Main ShowHideDataContainers(ActiveDocument, False) ' True to show, false to hide End Sub Sub ShowHideDataContainers(ByVal m_Doc As Document, ByVal b_Visible As Boolean) Dim m_Topic As Topic For Each m_Topic In m_Doc.Range(mmRangeAllTopics, True) If m_Topic.DataContainer.DataContainerType <> mmDataContainerTypeNone Then m_Topic.DataContainer.Visible = b_Visible End If Next End Sub
MAP - The Ultimate Add-in for MindManager 2017! - Become a MindManager Power User FAST! www.mapformindmanager.com