📄 tips.txt
字号:
Code Generation from a Class Diagram: You may generate code from a class diagram by selecting "Generate - Generate Class Code" and selecting the code generation script, such as CPPHEAD1.SCT.
Code Generation from a State Diagram: You may generate code from a state diagram by selecting "Generate - Generate State Report/Code and selecting the code generation script, such as STAHEAD1.SCT.
Generating HTML: Two ways to generate HTML in WithClass 1. You can Generate from the Code Generation Window using the scripts for html. 2. You can use the VBA word macro and then save the generated file in Word as html.
Bringing Class Data into Word: You may create a table from a class diagram by using the TABCLASS.SCT script. Once the table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
Bringing State Diagram Data into Word: Create a table from a state diagram using the TABSTATE.SCT script from "Generate-Generate Object Code/Report". Once the table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
Table Generation for Object-Interaction Diagram: Choose "Generate - Generate Object Code/Report" and select the TABOBMSG.SCT script. Once the table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
Class Data Dictionary Report: Choose "Generate - Generate Class Report" and select the DDCLASS.SCT script. Once the data dictionary table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
State Data Dictionary Report: Choose "Generate - Generate State Code/Report" and select DDSTATE.SCT script. Once the data dictionary table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
Object Data Dictionary Report: Choose "Generate - Generate Object Code/Report" and select the DDOBJ.SCT script. Once the data dictionary table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
ESC to Change Mode: Press the ESC button to return to the normal input mode. Press ESC if you have a pencil cursor and desire to return to the normal input mode.
Showing Relationships between Classes: To connect two classes with a relationship, 1st select the relationship cardinality (1:1, etc), 2nd select the relationship type (Association, etc) to get the pencil cursor icon, 3rd drag the pencil cursor from inside the first class to inside the second class, 4th click on the green/gray dot to enter the relationship name.
Showing Transitions between States: To connect two states with a transition, 1st select the transition symbol (Arrow with T) to get the pencil cursor, 2nd drag the pencil cursor from inside the first state to inside the second state, 3rd click on the green/gray dot to enter the transition event name.
Showing Interactions between Objects: To connect two objects with an interaction, 1st select the interaction symbol (Dashed Arrow) to get the pencil cursor, 2nd drag the pencil cursor from a connection point (x) on the first object to a connection point (x) on the second object, 3rd click on the green/gray dot to enter the interaction name.
Recursive Relationships: To create a recursive (looping) relationship drag the pencil cursor from one connection point (x) to another connection point (x) in a single entity (class, state, or object). Alternatively, click once on the first connection point (x) and then click on the second connection point (x). Click on the green/gray dot to enter the relationship name.
Overloaded Operation Names: Add one or more $ to the end of an operation name to distinguish it as an overloaded operator.
Adding Attributes and Operations in the Class Dialog Box: To add new attributes and operations in the Class Dialog Box, enter the name followed by a semi-colon. The semi-colon is a shortcut to enter multiple names.
Adding Multiple Entities: To add several entities, hold down the Shift Key. For example, to add several classes, select the class icon to get the Cross Hair with C cursor, hold the Shift Key down, and click the mouse where you desire to place each entity.
Connecting Multiple Relations: To add multiple relations, Click on desired relation and hold down the shift key while connecting several classes (states and objects) together.
Copy, Generate, Edit from Right Mouse Button: Place the mouse cursor inside a class and hold down the right mouse button to see Copy, Generate, and Edit menu item. Select Edit for in-place editing of class, attribute, or operation names.
In-place Editing: Place the mouse cursor inside a class and hold down the right mouse button to see Copy, Generate, and Edit menu item. Select Edit for in-place editing of class, attribute, or operation names.
WC File: When you save a diagram, a WC file is automatically created, such as XXX.WC. The WC file is a text file with all information from the class diagram. The WC file may be read by selecting "File - Read from ASCII File". This is primarily used by tool builders.
Inserting Tables into a Windows Word Processor: You may create a table from a diagram by selecting a table generation script, such as TABCLASS.SCT. Once the table is generated place the table into a Windows word processor. In the word processor select "Insert Database" and import the comma delineated file.
Removing Clip Region Box: Hit ESC to remove the dotted line box.
Text on Diagrams: You may enter special information that is not formally collected by the With Class CASE tool. For example, you could enter role information or relationship constraint information.
Using Tab in Class Diagrams: Press Tab to shift between class name, attributes, and operations. Press Tab after entering the class name to enter attributes. Press Tab after entering attributes to enter operations.
Relationship Names: To enter a relationship name, click on the green/gray circle on the relationship line.
Association Relationships between Three Classes: First associate two classes, second drag the pencil pointer from the green/gray dot then click to inside the third class. To name the association, click on the green/gray dot and press TAB.
Importing a Function Body: In the Operation Dialog Box, select Code. Select "Import C++". Then select the .cpp file to display the C++ statements. If you desire to save the C++ statements in the repository, select "Save to Memory".
Dockable Toolbars: You may move the toolbars to the side or other location.
Auto-Arrange: You may select Auto-Arrange in Preferences so that connections are automatically moved when you move a class.
Align Vertical: You may select a group of classes - then select Align Vertical to align the selected classes.
Align Horizontal: You may select a group of classes - then select Align Horizontal to align the selected classes.
Zoom-Clip: You may select a group of classes - then Zoom Clip to view the selected classes at the normal zoom.
Computer Tutor: You may select Computer Tutor to get tips on creating diagrams.
Package Classes: You may select Package Classes to assign a group of selected classes to a package.
Dragging Attributes & Operations: Drag attributes and operations out of the browser into other classes.
Dragging Classes & Packages: Drag classes or packages out of the repository browser onto your diagram.
Shape Appearance: Right mouse click on a shape to change individual font, text color or shape color.
Viewing Class Properties: Right mouse click on a class to display different properties of the class
Global Type Replace: In the Utilities menu, choose Replace type in order to replace attribute types, operation return types, etc.
Switching Repository Databases: Go to the Utilities menu and choose Class Repository. Then browse to change databases.
Formatting a Script: Use the COLUMN_TAB(x) script variable to align text in a script.
Ole Automation: Check the OLEAUTO directory for examples of using OLE Automation in Delphi, VB, Visual C++ and Java.
Batch Scripting: Use the Automation function RunClassScript to generate several scripts at the class level.
Add-In Manager: You can choose which add-ins get displayed in the menu by going to the Add-In manager in the utility menu.
VBA Objects: You can view all VBA objects for WithClass in the VBA Editor under the Object Browser.
Parsing your own code: You can use the provided Parser Object, in the WithClass COM model to help you parse code and create diagrams.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -