

tlh file) to an #include directive into the header file.Įnsure that Class Designer supports the type that you entered. A possible workaround is to manually add the generated code (the. The type is located in a library referenced by an #import directive. To correct this error, make sure that you have not commented out or deleted the type. The type does not exist (or has been commented out). Also make sure that you have not moved the type (or a related type) out of the namespace in which it was originally located. Ensure that the code is not missing a using, imports, or #include statement. The type is not in the correct scope, so Class Designer cannot locate it. For more information, see Managing references in a project. To correct this error, add a reference to the project or assembly that contains the type. The type is in a project or assembly that is not referenced from the project that contains the class diagram. Type resolution issuesĬlass Designer might not be able to resolve types for the following reasons: If a class diagram does not update with changes you have made in the code, you might need to close the diagram and open it again. After you do this, Class Designer should be able to display the type.

If you receive an error such as this, click Cancel in the error message and wait for the code element to appear in Class View.

This delay might also cause Class Designer to throw the error No types were found in the selection. Update and performance issuesįor C++ projects, it might take 30 to 60 seconds for a change in the source file to appear in the class diagram. If you do, drag the modified or relocated source code to the class diagram again to redisplay it. You might receive an error such as Class Designer is unable to display this type. Therefore, if you modify your project structure or move source files in your project, Class Designer can lose track of the type (especially the source type of a typedef, base classes, or association types). Troubleshoot type resolution and display issues Location of source filesĬlass Designer does not keep track of the location of source files. For more information, see UML Class Diagrams: Reference. This is not the same as the UML class diagram, which you can create in a Modeling Project.
