home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Demo / conceptdraw / data1.cab / Samples__Basic / Solutions / Diagraming / JointGraph / ReadMe.txt < prev   
Text File  |  2004-02-13  |  2KB  |  8 lines

  1. Another sample, that demonstrates how ConceptDraw can be used together with ConceptDraw Basic for fast and dynamic visualization of external data. It draws a graph of temperature changing in several regions based on the data specified in a text file. 
  2.  
  3. The Diagram.txt file store information about temperature changing during one month on several meteorological stations in different climatic zones. The JointGraph.cdb file contains macros which read information from this file and build a combined graph in the JointGraph.cdx document. The temperature changing graph is drawn in different color for each station. The data in the text file must be organized in several columns. The first column specifies the date of temperature taking, the other contain temperature on this day for each station. The first row of the corresponding column must contain the name of the station, which will be used in the legend for the graph. 
  4. In the group shape, inside which the graphs are created, text property is  saved. This property contains the full name of the file, from which the data was last time read. So, next time the document is opened or on executing the "Refresh" command from the user menu the diagram will be updated without asking for the name of the data file.
  5.  
  6. If the "Enable ConceptDraw Basic script autorun" flag is set in the Preferences dialog of Conceptdraw, on opening the JointGraph.cdx document a new submenu Fill Diagrams will be added to the Tools menu, from where you can start building the graph. You can refresh the graph buy choosing the name of the source file, or refresh the graph by referring to the file, which name is stored in the property of the shape, representing the graph. 
  7.  
  8. If the "Enable ConceptDraw Basic script autorun" flag is not set in the Preferences dialog of ConceptDraw, the script can be run from the ConceptDraw Basic editor (Tools->ConceptDraw Basic->Document Script->Edit). Then you'll need to run the CreateUserMenu() procedure from the Build->Run menu. The user menu will be automatically added to the Tools menu of the document window.