Programmatically add UML class shape to diagram

A

Alexander Korol

Hi

I'm trying to dynamically add class shape to diagram in Micrsoft Visio using
managed .NET addin. I was able to add a shape to diagram. But failed to add
even one attribute to it.
1. Is there any way to add class to a document (Model Explorer) without
having to insert it into a page?
2. Is there any API to programmatically set class attributes/methods?

Thanks in advance.
 
A

AlEdlund

Both the UML and Database tools use unpublished API's (they are carry overs
from when MS did not own the product). Sorry,
al
 
B

Billkrat

Both the UML and Database tools use unpublished API's (they are carry overs
from when MS did not own the product). Sorry,
al

Are you speaking as a Microsoft representative? Because what you are
suggesting is that Visio is dead (at least to developer/architects like me).

I'd rather fight then switch but after spending 4 hours yesterday manually
creating the classes, operations, attributes, etc for the
Microsoft.SqlServer.Management.Nmo object, and barely scratching the surface
of what I require to complete my diagrams so that they can understand the Sql
Server Notification Service, I'm questioning whether the juice is worth the
squeeze - I'll literally spend all day today just plugging in data....

Mai-lan's blog
(http://blogs.msdn.com/mailant/archive/2004/10/11/240618.aspx) suggest a
different reason for an API not being available - one that I could understand
and appreciate (back in the day when it was supported).

I'm impressed that Alexander Koral was able to create a Class (perhaps he'll
share the code with us?); I trust there are enough of us out there that could
figure this out if we were given even the most basic ability to add a Class,
operation, attributes and parameters - how long would it take to generate
such an informal document from the gurus that are using it in the Rosario CTP?
 
C

carlos carlos

Hi! i'm trying to do the same as you. have you found something about it???

i've only found new kind of shapes like classes where you can add something like attributes/methods but it's exactly a class

My mail is (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top