index > Visual Studio Team System - Domain-Specific Language Tools > unable to find common parent for view fixup

unable to find common parent for view fixup


DslModeling::DomainClassInfo.FindEmbeddingElement(sourceParent) throws this exception method when I try to commit a new element link by code.

element.SupperClass = anotherElement;
t.commit();

Any idea what could it be?
leovernazza
The problem was that the elements had the ModelRoot in a null value.
I tought that it was automatically assigned...

I fixed it setting the ModelRoot property.
element.ModelRoot = myDiagram.ModelElement as ModelRoot;
leovernazza
reply 2

You can use google to search for other answers

 

More Articles

Interacting with Server Explorer
How to set compartment's default expanded property to false?
How to Calculate a property's value
Drop-down list to edit 1-* relationships
Experimental UI - show and hide shapes and connectors
Mutliple DSL Installation
Custom action on dropping items onto the design surface
November release Designers compile errors
Problem starting new DSL-project
How do I get a new ModelElement's corresponding Shape?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Backward Compatibility Issue with Domain…
Are there any Community Projects using t…
Change a connector's from and to endpoin…
Dynamically generate and "install&q…
Adding ModelElements to 0..* relationshi…
Accessing the domain model using code
No 'add new...' on Compartment
Moving DSL Project to another machine
Error creating DSL setup project (empty …
How to remove non application menu-items…
Documentation for Microsoft.VisualStudio…
Localization
How to move shapes within diagram progra…
I have a new article from the NOV CTP ba…
Problem running Debug solution

Hot Articles

problem with connector
Deployment - template doesn't appear und…
Shape position from a template...
Nested Concept and Nested Diagram
problem when following "Walkthrough…
How to remove non application menu-items…
My view on views, Repositories, Multi-us…
Error Creating DSL Designer Project
new connectors
protected internal
What to use instead of GetDisplayPropert…
TextTemplatingFileGenerator now fails to…
updated DSL Customization Samples and Gu…
Validation when dropping an element on t…
Save instance of model in menu command

Recommend Articles

Enable/Disable property OnValueChanging/…
Use of the TextTransform tool
IE7 Beta 2 and DSL Tools
Using DSL tools outside VS
Load Data designed in another model file
Shape Icon and Shape Tool Minor Bug
Self-contained Embedding
changing defaults in inherited propeties
timescale for DSL additions
Textarea feature in DSL designer issue.
How to implement Rules in DSL
How To Navigate over Links
No items in the toolbox
change literals of enumeration property …
Can't run project (DSL November)