Convert all selected topics into a new shape
Answered
Hi,
I would like to be able to convert all the selected topics shape to a new shape.
So far I am able to make changes to the topics and also fill all selected topics with a different colour using the code below. But having researched the VBA options I am unable to convert to a new shape.
I have found the VBA object - mmStandardTopicShapeCircle, but I do not know how to use it.
Also, is this the most efficient way to carry out the process?
Thank you in advance for any assistance.
Set currentTopic = currentDoc.Selection.PrimaryTopic For Each currentTopic In MMapp.ActiveDocument.Range(mmRangeAllTopics) If currentTopic.IsSelected Then currentTopic.UserIcons.AddStockIcon(mmStockIconSmileyHappy) currentTopic.Font.Size = 12 currentTopic.Font.Bold=True currentTopic.FillColor.SetARGB(255,255,0,100) Else 'Do Nothing End If Next currentTopic
It may be a lot easier to just create a MM template with the new layout of the topics and apply that to your map.
Any user can find how to do it in the Help
No need for VBA or other programming, and that means the functionality is available to all, not only to those who understand VBA etc.
It may be a lot easier to just create a MM template with the new layout of the topics and apply that to your map.
Any user can find how to do it in the Help
No need for VBA or other programming, and that means the functionality is available to all, not only to those who understand VBA etc.
Hello Michael,
I'm not sure if this can be done with VBA but you can accomplish this with SmartRules if the topics meet the Trigger criteria.
Trigger based on these options -
Effect Type: Topic Shape
Best regards,
-Marian
Hello Michael,
I'm not sure if this can be done with VBA but you can accomplish this with SmartRules if the topics meet the Trigger criteria.
Trigger based on these options -
Effect Type: Topic Shape
Best regards,
-Marian
You could define a Topic-Style.
That's an easy way to change the topic shape for all selected topics to different one.
You can use Topic Styles in the SmartRules and Power-Filter/Select.
Best Andreas
You could define a Topic-Style.
That's an easy way to change the topic shape for all selected topics to different one.
You can use Topic Styles in the SmartRules and Power-Filter/Select.
Best Andreas
To add to the comprehensive list of answers: you can do this with MindManager's VBA script. It is not very obvious because each topic requires three shapes to be defined: the shape that is used when the topic is a Standard branch in a tree, the shape used when it is a Floating topic, and the shape used when it is a Callout topic. In each location, the shapes available are from a separate enumeration because they need different geometries.
The above code fragment uses Topic.Shape.SetTypes() to set the shape of the currently selected topic to a circle if it is in a tree or a floating topic, and a Capsule if it a callout topic. You can see the different shapes being applied by moving the topic to a different location.To add to the comprehensive list of answers: you can do this with MindManager's VBA script. It is not very obvious because each topic requires three shapes to be defined: the shape that is used when the topic is a Standard branch in a tree, the shape used when it is a Floating topic, and the shape used when it is a Callout topic. In each location, the shapes available are from a separate enumeration because they need different geometries.
The above code fragment uses Topic.Shape.SetTypes() to set the shape of the currently selected topic to a circle if it is in a tree or a floating topic, and a Capsule if it a callout topic. You can see the different shapes being applied by moving the topic to a different location.---