Sam Hobbs

I have looked at the documentation but I can't find the Class Designer. I know that I need to add a Class Diagram to the project but I can't find a Class Diagram (in the templates) to add. I searched this forum and found Can't find Class Designer on IDE. I have tried the instructions in the documentation and that thread but I can't find a Class Diagram to add.

We have VS Professional Edition installed. It is not a beta version. I did not install it so if it can be installed without the Class Designer then I would not have known that. Is that a possible explanation for why I can't find Class Designer

When I try to add a Class Diagram to the project, I see templates only for VC. Is the Class Diagram template in a different Category

I have used VC since version 1, so I am familiar with projects, solutions (workspaces), the class view and the application wizard and such. So I have a good understanding of what they are and how to use them.



Re: Visual Studio Class Designer Can't find Class Designer

OmegaMan

Select the target project in the solution explorer and then right click. The right click options menu will contain an option View Class Diagram which should get you on the right direction. I had similar issues. <g> BTW check out the ClassDesigners Weblog for some interesting tidbits.





Re: Visual Studio Class Designer Can't find Class Designer

Simple Samples

When you say "Select the project in the solution explorer and right click" I assume you just mean to right click; I don't know how to do both select and right-click such that the right-click depends on the selection.

It does not work for me. To see what I see, look at (I hope this works) My Project's Context Menu.

If this works, anyone can see what I see when I try to add a new item to my project; see Add New Item - top and Add New Item - bottom






Re: Visual Studio Class Designer Can't find Class Designer

OmegaMan

My bad. I updated my post for clarification.  I believe the confusion lies in the fact that one does not directly create the diagram, such as creating a C# file or control; it gets created for you by doing the View Class Diagram action. The action does double duty...Here are the steps:
  1. Bring up the Solution Explorer Tab.
  2. Highlight by selecting a project with the mouse in the view.
  3. Right Click to bring up the right click menu for that project.
  4. Choose View Class Diagram. If there is one it is shown; if there is not then it is created. Regardless the next document brought up will be that Class Diagram for that project.
Since you posted a pic, here is my blog post Access Class Diagram which shows the right click and the View Class Diagram selection to highlight on the solutions menu.





Re: Visual Studio Class Designer Can't find Class Designer

Sam Hobbs

Thank you for your assistance.

This should be easy but there does seem to be a problem. I hope I am not the problem.

I apologize for the mismatch of userids. I forgot to switch them.

There are some differences between your Access Class Diagram and My Project's Context Menu. I assume there is a reasonable explanation of the differences, but it is my understanding that there should be a View Class Diagram in the context menu yet there is not one. Either:

  1. I just do not see it
  2. I am not following your instructions
  3. There is something unusual about our installation

If someone can determine that either of the first two are true, then that will sure help. Otherwise I will assume that the third possibility applies. Or is there another possibility

 





Re: Visual Studio Class Designer Can't find Class Designer

OmegaMan

Here is the question that needs to be asked...is the version 2005 It is not in VS2003. If you are using 2005, the menus can be changed dynamically and something may have changed them.

Here is a way to verify if you have it:
  1. File menu select Tools then Customize.
  2. Look at the Commands tab.
  3. In the categories one should see the Class Diagram Category on the left pane. If that is not there then the option is not available.
Also Class Designer is not in the Express Versions of 2005 see the Product Feature Matrix.





Re: Visual Studio Class Designer Can't find Class Designer

Sam Hobbs

Yes, it is 2005 edition. I am sorry I did not say that in my original question; I meant to. It is the Professional version.

I do have the Class Diagram category in the commands. So that helps.

I have limited the toolbars that are shown but I have not (intentionally) altered the toolbars and menus that are supplied with VS.

I will try a few things with the commands and toolbars to see if I can get it to work that way.





Re: Visual Studio Class Designer Can't find Class Designer

OmegaMan

Which language are you using There may be an issue with C++.





Re: Visual Studio Class Designer Can't find Class Designer

Sam Hobbs

That is probably the problem. Microsoft can be be very frustrating about not mentioning things like that. Even when I try to find something saying that VC is not supported, I can't find that. I think it should be clearly stated in Designing and Viewing Classes and Types but it definitely is not. I don't know how difficult it would be to support C++ by the Class Designer but I think it is just another example where they just don't want to so that they can make C++ less desirable than VB and C#.

I created a C# project and the Class Diagram is created with the project.





Re: Visual Studio Class Designer Can't find Class Designer

Sam Hobbs

I will assume that you have answered the question but I hope that someone can find the place in the documentation that specifies that not all languages are supported.



Re: Visual Studio Class Designer Can't find Class Designer

OmegaMan

 Sam Hobbs wrote:
I will assume that you have answered the question but I hope that someone can find the place in the documentation that specifies that not all languages are supported.


In the link I sent with the product matrix, its in the fine print as a footnote

* There are no Office project templates for Visual C++.
The C++ language is not supported in the Class Designer/Object Test Bench.

This is the last post on the Class Designer Team's weblog, before they were sent out to pasture I guess <g>

The Visual Studio Class Designer team is sad to announce that the Class Designer will not support the C++ language in the upcoming release of Visual Studio 2005. Late last week we were forced to make a very difficult decision, which we are relaying to you today. Needless to say this was a very painful decision, as we had invested a lot of time and effort in providing support for C++. However, after analyzing the work items remaining to fully support C++ class design, we concluded it would not be possible to deliver a high quality experience for C++ users by product release. Therefore, we have decided to remove support for C++ in the Class Designer. Enabling support for C++ in the Class Designer will be a top priority in future releases of Visual Studio. For Visual Studio 2005, the Class Designer will support the VB.NET, C# and J# languages. We welcome your thoughts and feedback on this decision.





Re: Visual Studio Class Designer Can't find Class Designer

JonathanZhang

SDM and class designer didnot support vc, MS didnot say it very cleary.

I think i was cheated by Microsoft --- it took me some hours to konw VC is not fully supported.

If i had knew the news, i won't cheer for VS 2005 and throw it to trash.

Jonathan





Re: Visual Studio Class Designer Can't find Class Designer

Sam Hobbs

As you can determine from my previous replies, I agree that it is not as clear as it should be that C++ is not supported.