Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: cmpressl on January 11, 2005, 12:42:52 pm
-
Hello,
I am evaluating EA for my company, and I am trying to reverse engineer one of our Visual Basic 6.0 projects. I can import the project successfully, but my question is with regard to comments in the code. I can get method and property comments to come into the diagram, but I cannot seem to get comments at the top of the class file to import into the class "Notes" section.
Does anyone have any tips on how to accomplish this? Are there any best practices for commenting the VB6 code so that it will import correctly?
Thanks,
Chad
-
Actually not. But I'd try to forward engineer one class and see what EA creates, then make source changes and see whether they're reflected in the model.
-
I have played around with reverse engineering the code, then adding comments to the class Notes section, and the forward engineering it back to the source code. Doing this, I get the following in my source class file:
Option Explicit
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''
'' clsProductDisplay.cls
'' Implementation of the Class clsProductDisplay
'' Generated by Enterprise Architect
'' Created on: 13-Jan-2005 09:24:50 AM
''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' These are comments
'' put in the Notes: section
'' on the class diagram
The problem is when I change the text for the comments and reverse engineer the code, the text does not import into the notes section. It appears that the forward engineer pushes class comments, but the reverse engineer does not pull them back.
-
Sparx should comment on that...
-
Synching comments is optional. Check your generation options and see if both Generate and Reverse are checked for comments
-
Generate and Reverse are both checked under the Comments frame