home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Demo / conceptdraw / data1.cab / Samples__Basic / SimpleDrawing / DrawSlices / ReadMe.txt < prev   
Text File  |  2004-02-13  |  1KB  |  3 lines

  1. This sample uses the ConceptDraw Basic scripting language to create basic ConceptDraw shapes. It draws several slices of a pie chart, which represent values in per cents. 
  2. The DrawSlice procedure clears the active document from all shapes in it. Then several pie charts are drawn on the active page. The radius of each next diagram is less than the preceding one. The position of diagrams and the values in them are generated randomly. To build the sectors of the pie charts, the auxiliary function DrawSlice is used. It builds a closed shape, to which text and color are assigned. The text displays the value of the sector of the chart in per cent. 
  3. The DrawSlices() procedure is located in the external module DrawSlices.cdb and is called from a document-level script. 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) from the Build->Run menu.