Mind Manager Macro - Specify Dependency Type

  • 1
  • Question
  • Updated 8 months ago
  • (Edited)
Hello,
I'm having a bit of trouble specifiying the dependency type ("Finish To Start") for relationships.

I can successfully create a relationship with the function below, but I'd like to set the dependency type. Does anyone have an example of that?

I can see that there is property/function that is MmDependencyType but am not sure how to use this.

Private Function CreateRelationship(predTopic As Topic, succTopic As Topic)
Dim r As Relationship Set r = predTopic.Relationships.AddToTopic(succTopic)   End Function
Photo of Andrew Coutts

Andrew Coutts

  • 5 Posts
  • 0 Reply Likes

Posted 9 months ago

  • 1
Photo of Patrick Baker

Patrick Baker

  • 46 Posts
  • 6 Reply Likes
Hi Andrew 

What are the actual types you want to make dependency upon? If you can share a copy of the project map this would be helpful to have a look see.

Best regards ,Patrick 
Mindlogik Ltd. 
Photo of Andrew Coutts

Andrew Coutts

  • 5 Posts
  • 0 Reply Likes

Hey Patrick. 
Basically I was able to create the relationship from "18-HV-0005A" to "18-02-0008" via the function above, but I cannot cannot seem to work out how to the the Dependency Type of the relationship to "Finish to Start" / "Finish to Finish"
Photo of Nick Duffill

Nick Duffill, Champion

  • 508 Posts
  • 169 Reply Likes
Hello Andrew
Which version of MindManager are you using? I can answer for MM2018 but earlier versions are quite complex.
Photo of Andrew Coutts

Andrew Coutts

  • 5 Posts
  • 0 Reply Likes
Hello Nick,
I am using the 2017 version.
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 116 Reply Likes
Interesting, Nick. Any changes in the object model for MM2018?
Photo of Nick Duffill

Nick Duffill, Champion

  • 508 Posts
  • 169 Reply Likes
Sorry for the delay, will reply in detail as soon as I can
Photo of Pato Majek

Pato Majek

  • 1 Post
  • 0 Reply Likes
Hello Andrew,

here you are. I had same problem. I have modified your macro little bit to show you how to set dependency "Finish To Start". I hope it will be helpful for you.
Private Function CreateRelationship(predTopic As Topic, succTopic As Topic)
Dim dd As MmDependencyType dd = MmDependencyFinishToStart
    predTopic.SetDependency(succTopic,dd)
End Function