I'm having difficulties creating connectors between compartment objects in two different domain classes. Been playing around with it for a while and keep running into the following problems, could somebody explain to me exactly why this happens
- Error 1 The name 'GetSourceShapeForControlToHandler' does not exist in the current context
Error 2 The name 'GetTargetShapeForControlToHandler' does not exist in the current context
Error 3 'ITT.MVC.MVCDiagram' does not contain a definition for 'GetSourceRolePlayerForLinkMappedByControlToHandler' - Error 4 'ITT.MVC.MVCDiagram' does not contain a definition for 'GetTargetRolePlayerForLinkMappedByControlToHandler'
- Error 5 The name 'GetParentForControlClassHasEventHandlers' does not exist in the current context
Also, is it a good idea to draw links between compartment objects in a designer or is there a more user friendly approach
thanks
Stephen

Relationships between compartment objects
Noremac
Hi Stephen,
We do not currently support adding connection between items in the compartment shape. We have not tried to see what it entails and we will look into this at later time.
An alternative is to somehow piggyback the information in the domain relationships between the parent elements. Use ClassDiagrams as an example, let's say you have a ClassReferencesClass domain relationship and a connector associated with it. Assume your real intention is to connect two methods in the connected classes. In your gen'ed ClassReferencesClassBuilder class, there's a Connect method which connects the underlying classes together. You can figure out what two methods in the shapes are selected and piggyback this info in the created ClassReferencesClassBuilder element link. Notice that you will have to mark the LinkConnectDirective in the builder to CustomConnect (via the DSL Details tool window).
As you can see, the above recommendation is still rather sketchy. You might need to try it out. A safe bet would be to create them as separate shape (downside is that the diagram is not going to be intunitive.)
HTH
CraigInCalifornia
I found a similar post where I think somebody is trying to do the same thing as I am
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=526967&SiteID=1
My model contains three element classes which each contain one domain class. The model represents a Model/View/Controller design. So i have Model/View/Controller domain classes which contain UIControl/EventHandler/ModelClassMethods respectively. I need to define connections between:
- UIControls and EventHandlers
- EventHandlers and their ModelClassMethods
My first iteration of this problem created separate shapes on the designer for each of the six elements. I then created compartments within UIControl/EventHandler/ModelClassMethods to hold the domain class which they contain.Is there a way to draw connections between compartment objects If not what is the best way to work around this problem Should I simply create a shape for each element rather than using compartment shapes This looks a little messy.
I'm really struggling with this at the moment so any help would be much appreciated!
thanks
Stephen