<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
	<TITLE>CAD_examples_en.htm</TITLE>
	<meta name="author" content="fwork">
	<META NAME="CREATED" CONTENT="20091101;6335200">
	<META NAME="CHANGEDBY" CONTENT="David Young">
	<META NAME="CHANGED" CONTENT="20111004">
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<PRE>



<B>Getting Started - documentation gCAD3D - CAD</B> 

<h2>Mainfunction CAD</h2>
  Interactive creation and modification of objectcodes.
  Select the CAD checkbox.


<a href="VWR_en.htm#view">How to move, zoom, rotate the view</a>
<a href="CAD_using_en.htm">How to operate CAD</a>


<b>Create objects:</b>
 <a href="#Wk">Construct wireframe elements</a>
 <a href="#Fk">Construct surfaces</a>
 <a href="#Zk">Cylinder/prism design</a>
 <a href="#Ae">Create assembly</a>
 <a href="#Bl">Load bitmap</a>
 <a href="#A">Activity</a>

<b>Modify objects:</b>
 <a href="#ModMovP1">Modify existing points</a>
 <a href="#ModCut1">Trim a line</a>
 <a href="#ModMir1">Mirror a line</a>


____________________________________________________________________________
<p><a name="Wk"></a></p>
<b> Construct wireframe elements  </b>


 A slotted hole design: 
 Select main module CAD; 

 Select CAD feature “CIR Cen Radius&quot;; 
 Center point (left/inner mouse button in the graphics window), 
 Radius field enter: radius, 
   move to the next input field with the cursor-down button (not return); 
 Z-axis input vector (DZ is selected); 
   continue with the cursor-down key. 
 You will see the circle now, and if necessary modify: 

 Modify:  
  Esc key deletes the contents of the previous input field; 
  Cursor-down key: new preview of the object. 

 Save the object: 
  The finished object with OK button, return-key or right/outer mouse button to create. 
  The finished object code (text can now already in operation with MAN 
  Edit window will be controlled (modified)


 Create a second, adjacent circle

 Produce tangents to the 2 circuits: 

 Select CAD-function &quot;LN CirTang CirTang&quot;; 
 Select the two circles, 
 Page ==side?== correct: select the next version with the picture-down button.
   revert with picture-up-button.
   File with Return key. 


 Trim the circle: 

 CAD-function: select &quot;CUT (trim) obj&quot; 
  then select the bounding circle 
  then select the line that limits the extent


 File the model: 
  File/save Model as/native 
  Test1 (in the lower input window) button, button SAVE 

 The model is saved as file Test1.dat in the active output directory. 
 You can view/modify this file with any text editor.

 Export as DXF  
  File/save Model as/DXF .. 




____________________________________________________________________________
<p><a name="Fk"></a></p>
<b>Constructing surfaces</b>

To construct surfaces, the outer contour (and internal contour) are required. 

Create a contour:
Outline: For creating the contour, the individual parts must not be trimmed. 

CAD feature &quot;S Contour (CCV)&quot; 
 Select the row after all the contour elements. 
 To remove an invalid selection: Use the delete button in the LineEdit window. 
 File with right/outer mouse button

 CAD-function &quot;A planar Surface&quot;
 Select the outer contour, then the inner contours. 
 Save the file

VRML1 Export as: 
 The surface can be saved as a VRML1 file;
 File/save model as/VRML1 
____________________________________________________________________________ 
<p><a name="Zk"></a></p>
<b>Constructing a cylinder/prism </b>

 For prisms (as for a surface) a closed contour is required. 

 CAD-function &quot;B Prism Base&quot;
 Select contour (eg S20); 
 Enter thickness &quot;50&quot;) or 
 Enter Z-vector (&quot;D(0 0 50)&quot;) or 
 Define a point (&quot;P(0 0 100)&quot;) - generates a cone

 Preview with cursor-down key 
 To save use right/outer mouse button. 
____________________________________________________________________________ 
<p><a name="Ae"></a></p>
<b> Create an Assembly </b>

 An assembly consists of loaded and positioned Sub-models. 
 A sub-model can be placed by: 
  - Origin [and an X-and Z-axis] or 
  - Origin and a reference system (a plane (PLN, &quot;R&quot;)) 

 Model Space: File/New. 

 Mockup models (.wrl .obj) loading/positioning: 
  CAD-function &quot;M ext.Model Filename Pos' 
  Input 'Filename': Push middle mouse button (in the graphics window), 
   Select a model file, 
   or - if the Model is already loaded - select model. 
  Position (select the input field for 'Position' or the cursor-down key): 
   position in the graphics window with the left/inner mouse button
   or key in, eg. &quot;P(100 100 100)&quot; 
  Z-Axis (optional): 
   Default is &quot;DZ&quot; (must be entered when an X-Axis is defined). 
	 All the text entries must be without apostrophes! 
  X-axis (optional): 
   Default is DX, &quot;DY&quot; rotates the model 90 degrees, 
   &quot;D(1 1 0)&quot; (a reference vector) rotates by 45 degrees. 
  File: right/outer mouse button 

  Native Models: to position/load: 
   Sub-models/load Sub-model from File 
   Load the desired Sub-model 
   (is created as an internal model, not yet in a visible position) 

  Internal Model: to position:
   CAD /'M int.Model' 
    'Sub-model'- middle mouse button - select int.Model 

  Load STEP, IGES, DXF models as sub-models: 
   Must currently first be loaded directly (File/Open Model), 
   then be filed in native format (.dat) 
   can now be downloaded as su-bModel with: 
   Sub-model/load Sub-model from File. 

  Manual - can be downloaded with function file/insert: 
   - native models (.dat) 
   - Mockup models (.wrl) 
   - bitmap (.bmp) 

  Select files file/insert/dat/wrl/bmp. 
  It is generated by the following command line: 
  M1 = &quot;symDir/Filenam.wrl&quot; P(0 0 0) 
  In the main mode MAN the location/the axis can now be changed. 
  M1 = &quot;DATA/Test1.wrl&quot; P(100 0 0) DZ DY 
   shifts by 100 mm and rotates by 90 degrees. 

  File with:
   File/save as Model/native.

____________________________________________________________________________ 
<p><a name="Bl"></a></p>
<b>Load bitmap </b>

  Bitmaps can be displayed simultaneously with 3D objects; 
  Bitmaps are always shown normal to the view surface. 
  Currently, only files with uncompressed BMP format can be imported. 

  To load a Bitmap manually: 
   file/insert/select. BMP file. 

  CAD function load Bitmap 
   Select 'N Image Pos BMP-filename'
   'point image': 
    the lower left position of the bitmap
   'StartPoint Line' optional: 
    a reference line should be created to the image: Select the start point of the reference line
   'Linetype' optional: 
    1 = full, 2 = ==strichl==, 3 = ==strichpunkt==. 
   'Filename' use middle mouse button to select an uncompressed .BMP file
   'Scale' is optional: 
    0.2 gives Image reduced to 20% of original

  View with the cursor-down button. 
  File with right/outer mouse button. 

  If no scale (or value 0) is defined, then the bitmap is dynamically scaled. 
  Where there is a scale, this scale is fixed.  

____________________________________________________________________________ 
<p><a name="A"></a></p>
<b>Activity </b>

  Any CAD object can be linked to an interaction, eg: 
   - move View position (to a predefined view position)
   - load a predefined linked model (such as HTM HREF) 
   - run a supplementary program (DLL) 

  Interaction is active in mode VWR, and inactive in modes CAD and MAN.   
   (in CAD or MAN activate with Options/Interaction). 

  Create Activity 'change view position': 
  CAD-function: Select 'Interact connect' 
   'connect object' 
    select the object to be modified in the area which defines the target View position, ie as a bitmap. 
   'command' 
    Now set the desired View position (zoom, pan ..) 
    and in the upper left corner. 
    Now select Insert/viewport (from the top menu bar), 
    the View parameter be entered into the input field. 

  View with the cursor-down button. 
  File with the right/outer mouse button. 

  Activity Test: 
  select main mode VWR and pick the object. 
  toolbar and info bar with Options/Maintoolbar and Options/MessageToolBar 
  (startup options are NoToolBar and noMsgBar. 

  Load a linked model: 
   Create an image with the text &quot;Exit&quot; 
   (will load below with the function 'linked-model' linked. 
   Select CAD function 'N TAG type, line, text'
   'Type + Color'
    Enter &quot;23&quot; (without quotation marks) to make a block of colour green; For details, see documentation 
   'TextPoint' 
     defines the left middle of the text block 
   'Start Point', 'Line' and 'Linetype' 
     remains' empty - no connecting line 
   'text' 
     &quot;Exit&quot; (without quotation marks). 

  View with the cursor-down button. 
  File with the right/outer mouse button 

  To connect the object using the activity 'model call': 
   Select CAD-function 'Interact connect' 
    'connect object' 
     to select the last created object 
    'command' 
     LDMOD &quot;Data/Test1.dat&quot; (file name in quotation marks). 
  File: right/outer mouse button. 

  This has generated the following code: 
   I20 = N20 &quot;LDMOD&quot; Data/Test1.dat&quot; 
    (where N20 is the exit tag, the model &quot;Data/Test1.dat&quot; is loaded with the selection of N20). 

  Before the test, Save to File/save Model 

  Starting an additional Activity Program: 
   The program code used is: N21 = I22 &quot;EXECM Demo capacitor plate&quot; 
   This is loaded from the Programme library DemoKondensatorplatte.so (.dll in MS-Win), and the start function gCad_main is started. 
   For details, see .. /doc/gCAD3D_prog_de.txt. 

  See also model sample_activ_1.dat 

____________________________________________________________________________
<p><a name="ModMovP1"></a></p>
<b>Modify existing points</b>

Finish the active CAD-function with the Esc-key.
  (several times if inputfields are not empty).


Modify existing point:
  select point with right mousebutton, select "move points".
  Move mouse, select new position, save with right mousebutton.


Modify points of line or curve:
  select object with right mousebutton, select "move points".
    Select point to move (yellow rectangle).
      Move mouse, select new position, save with right mousebutton.
    Select next point to move or save with right mousebutton.
    
For detailed info see  <a href="PED_en.htm">PED_en.htm</a>



____________________________________________________________________________
<p><a name="ModCut1"></a></p>
<b>Trim a line</b>

- create 2 crossing lines:
  select "LN PT PT", indicate 2 points, press right mousebutton.

- create the intersectionpoint:
  select "INT(intersect)", select both lines, press right mousebutton.

- trim line:
  select "CUT(trim)", select the line to trim, select the point,
  select alternate version if necessay:
    click into field "[solutionNr]", key PageDown (twice),
  press right mousebutton.



____________________________________________________________________________
<p><a name="ModMir1"></a></p>
<b>Mirror a line</b>

- create mirror-plane:
  select "PLN PT Z-Axis", indicate the position of the plane,
  define the Z-axis (eg select or key "DY"),
  press right mousebutton.

- mirror line:
  select "Mirror obj", select the line, select the plane,
  press right mousebutton.



____________________________________________________________________________
</PRE>
</BODY>
</HTML>
