index > Visual Studio Team System - Domain-Specific Language Tools > Tying domain classes to shape objects

Tying domain classes to shape objects


Hello! Please forgive me for such a beginner question, but we just started playing with DSL Tools a few days ago and are having some trouble getting shapes to appear in the VS toolbox. We've attempted the following steps: create a domain class ('FooElement'), create a Geometry Shape ('FooShape'), add an Embedding Relationship from ExampleModel to FooElement.  In the DSL Explorer:  add a ToolboxTab/Tool (Class=FooElement, Order=10), add a ShapeMap (Class=FooElement, Shape=FooShape). After performing these tasks, the item still won't show up in the VS toolbox when running the project. Help?

EDIT:  the error was that the templates hadn't been transformed.  However, now, when dragging an object onto the surface, it adds it to the model but doesn't draw the shape.
SleipOdin
Hello SleipOdin,
Well done so far...but perhaps you still need to write the "parent element path" for the FooShape in the DSL Details toolwindow.
To open the window, just select the FooShape shape and then display the DSL Details window by selecting View -> Other Windows -> DSL Details
On the General tab you need to insert the appropriate path in the relevant field. According to your description, the path should be something like ExampleModelHasFooElement.ExampleModel/!ExampleModel
Claudio Perrone

Hi,

I had a similar experience (shapes not appearing in the diagram surface) when I first used the June CTP. In my case I noticed that I was missing an "element merge directive" from my root class to the other classes in the model. You can find this in the DSL explorer under the "classes" category. select your root class and see if there are any "element merge directives" present for your classes you want to be displayed (shapes) in your diagram. You can add these by right clicking your root class and select "Add New ElemetMergeDirective".

Hope this helps.

Edward

Edward Bakker
reply 3

You can use google to search for other answers

 

More Articles

Suggestion - Context Menu: Override Behavior or Rule
How to move shapes within diagram programmatically???
How do I use the DSL that I have created in other .Net projects?
T4 Example of passing parameters to TextTransform using the -a co...
Deployment - I can't find the template
Own shape decorators
Enterprise Library
Error creating DSL setup project (empty definitions)
November DSL toolkit: how to add commands to context menu?
Transaction.RollBack() Error: Oject reference not set an instance...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

IsSerializing property
Use of the TextTransform tool
More than one Diagram / File - Extension…
reuse of model elements
Release of a DSL for the Gamma et al. De…
Add a toolbar to the dsl designer surface
'security error'
Rules in DSL Tools V1
How can i force the placement of a port …
Designer code templates - where are they?
Prevent generated DSL code from producin…
How can I order compartments within a sh…
Are there any Community Projects using t…
Elements doesn't appear to the target de…
IE7 Beta 2 and DSL Tools

Hot Articles

How to change the Name property when a S…
Creating a modelElement at runtime
Name of new elements
How to Dynamically create shapes
DMD -> DD helper tool (contribution)
Instanciate an external model
T4 Example of passing parameters to Text…
Error : Value cannot be null ,Parameter …
How to Prevent property from being displ…
DSL interacting with VS project system.
How To Navigate over Links
How to intercept shape double-click event
Enterprise Library
Why must the ShapeField's value be assoc…
How to Export diagram as image

Recommend Articles

Name of EventHandler called when Compart…
VS SDK March 2006 CTP
Upgrade bug: Only 8.1 version of TextTem…
Atrributes with particular properties
DSL Support For Reverse Engineering, Obj…
some question In DSL Tools
unable to find common parent for view fi…
Using DSL tools outside VS
Unable to Replace Old Files by New ones
Default values not stored
problem when following "Walkthrough…
Using domain specific language
How to make Tree's?
Licence options for the generated model
Decorator for Compartments