Can I define a data type in Class Diagram?

G

George Wei

Dear all,

I'm using Visio 2002. When I draw a Class Diagram (static structure
diagram), it provides only few standard data types for each language, how
can I define my types? Thanks.

Regards,
George
 
M

Michael J. Hunter [MS]

George,

Every Class, Datatype, or Interface you create in a model appears in the
list of available datatypes the Parameters Properties and other dialog boxes
display.

You can add any of these by dragging out a shape onto the diagram, of
course. If you don't want/need the actual shape, you can also choose New |
Class, New | Datatype, or New | Interface from the context menu of your
package (named Top Package by default) in the Model Explorer.

The Model Explorer also lets you add interfaces and datatypes to the builtin
datatype sets.


Michael J. Hunter
Microsoft
michhu-at-online-dot-microsoft-dot-com

Developing Microsoft Visio Solutions:
http://msdn.microsoft.com/library/en-us/devref/HTML/DVS_Copyright_1270.asp
Developer Resources for Microsoft Visio:
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000456

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
G

George Wei

George,

Every Class, Datatype, or Interface you create in a model appears in
the list of available datatypes the Parameters Properties and other
dialog boxes display.

You can add any of these by dragging out a shape onto the diagram, of
course. If you don't want/need the actual shape, you can also choose
New | Class, New | Datatype, or New | Interface from the context menu
of your package (named Top Package by default) in the Model Explorer.

The Model Explorer also lets you add interfaces and datatypes to the
builtin datatype sets.


Michael J. Hunter
Microsoft
michhu-at-online-dot-microsoft-dot-com

Developing Microsoft Visio Solutions:
http://msdn.microsoft.com/library/en-us/devref/HTML/DVS_Copyright_1270.
asp Developer Resources for Microsoft Visio:
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?cont
entid=28000456

This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms
specified at http://www.microsoft.com/info/cpyright.htm

Thanks a lot. That's really what I want.

Regards,
George
 

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