Sophie

Sophie

distrib > Mageia > 5 > i586 > media > nonfree-release > by-pkgid > 43510343ad2ee65e191030d8705f9e45 > files > 82

gcad3d-2.01-4.mga5.nonfree.i586.rpm

<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
	<TITLE>CAD_examples_en.htm</TITLE>
	<meta name="author" content="sm">
	<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>



<h2>First Steps - documentation gCAD3D - CAD</h2> 

<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="#CrCCV1">Construct a CompositeCurve</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"; 
 Define the center point (left mouse button in the graphics window), 
 key the radius, 
 move to the next input field with the cursor-down button or the tab-button,
   (not return); 
 Z-axis input vector (DZ is predefined); 
 You will see the circle now;

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

 Save the object: 
  Create the object with OK button, return-key or right mouse button. 
  You can inspect the object code (text) with function MAN.


 Create a second, adjacent circle

 Produce tangents to the 2 circuits: 

 Select CAD-function "LN CirTang CirTang"; 
  Select the two circles, 
  If necessary, select the next version with the PageDown-button.
    go back with picture-up-button.
  Save object.


 Trim the circle: 

 CAD-function: select "CUT (trim) obj" 
  select the circle to be trimmed
  select the 1. line that limits the circle
  select the 2. line that limits the circle
  If necessary, select the next version with the PageDown-button.
    go back with picture-up-button.
  Save object.


 File the model: 
  File/save Model as/gcad 
  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 a surface, the outer-contour is required. 
Inside the outer-contour can be internal-contours (holes).

The contours must be closed.
For contours can be used circle, ellipse, closed-polygon or closed CCV.


Create the contours:
  create a circle
  create a second circle inside the first circle (a hole)

Create the surface:
  Select CAD-function "A planar Surface"
  Select the outer contour and all inner contours. 
  Save object (right mousebutton).


VRML Export:
 Surfaces can be saved as a VRML file;
 File/save model as / VRML2 or VRML1


____________________________________________________________________________ 
<p><a name="CrCCV1"></a></p>
<b>Constructing a CompositeCurve </b>

You can connect curves of different types to a contour.
You do not have to trim the individual parts.
The first and the last inputobject should be a point,
  internal points can be used.


CAD-function "S Contour (CCV)" 
 select the startpoint
 Select all contour elements
   remove an invalid selection: Use the delete button in the LineEdit window. 
   turn direction (eg circle): select "CW" (in the LineEdit window)
 select the endpoint
 Save object (right mousebutton).

See also <a href="CAD_CV_en.htm#F10">CAD-CCV</a>




____________________________________________________________________________ 
<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 "B Prism Base Thick"
 Select contour (eg S20); 
 Enter thickness "50") or 
 Enter Z-vector ("D(0 0 50)") or 
 Define a point ("P(0 0 100)") - generates a cone

 Preview with cursor-down key 
 Save object (right mousebutton).


____________________________________________________________________________ 
<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, "R")) 


 Clear model Space:
  File/New. 


 Load / use external models (native models (.gcad), mockup models (.wrl .obj):
  CAD-function "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): 
   indicate position in the graphics window with the left mouse button
    or key in, eg. "P(100 100 100)" 
  Z-Axis (optional): 
   Default is "DZ" (must be entered when an X-Axis is defined). 
	 All the text entries must be without apostrophes! 
  X-axis (optional): 
   Default is DX, "DY" rotates the model 90 degrees, 
   "D(1 1 0)" (a reference vector) rotates by 45 degrees. 
  Save object (right mousebutton).


  Load native Models into the active model:
   subModels / load Submodel from File 
   Load the desired model 
   (is created as an internal model, is not yet visible) 


  Use internal Model:
   CAD / 'M int.Model' 
    'Sub-model': middle mouse button (in the grafic window) - select model 
    ..


  Load STEP, IGES, DXF models as sub-models: 
   Must currently first be loaded directly (File/Open Model), 
   then be filed in native format (.gcad) 
   can now be used as subModel ..



____________________________________________________________________________ 
<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. 
  Files with format .JPG and .BMP can be imported. 


 Load Bitmap:
  Select CAD function 'N Image Pos Filename'
   'point image': 
     give the lower left position of the bitmap
   'StartPoint Line' optional: 
     if you want a line to the image:
     Select the start point of the reference line
   'Linetype'   optional: 
     1 = full, 2 = dashed, 3 = dash-dot
   'Filename':
     use middle mouse button to select a bitmap-file
   'Scale'    optional: 
      0.2 gives Image reduced to 20% of original

  View with the cursor-down button. 
  Save object with right 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 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': 
  Select CAD-function 'Interact connect' 
   'connect object':
      select an object (selection of this object will activate the view-change)
    'command':
      Now set the desired View position (zoom, pan ..) 
      Now select Insert/viewport (from the top menu bar), 
      - the View parameteris are written into the input field. 
  Save object (right mousebutton).


Test Activity: 
  select main mode VWR and pick the object. 



Create Activity 'Load model':
  Select CAD-function 'Interact connect' 
  'connect object':
    select an object (selection of this object will activate the view-change)
  'command':  enter:
    LDMOD Data/sample_mod_blech1.gcad
  Save object (right mousebutton).

  This has generated the following code: 
   I20 = N20 "LDMOD Data/sample_mod_blech1.gcad"
    (where N20 is the activating object, the model "Data/sample_mod_blech1.dat"
    is loaded with the selection of N20). 

  Before the test, Save to File/save Model or Ctrl-S.



Create Activity 'Start program':
   Enter 'command':
     EXECM DemoKondensatorplatte

   This will load the library DemoKondensatorplatte.so (.dll in MS-Win)
   and start the function gCad_main.
   For details, see .. /doc/gCAD3D_prog_de.txt. 


See also model sample_interact1.dat 



____________________________________________________________________________


Create a tag with the text "Exit"
   Select CAD function 'N TAG type, line, text'
   'Type + Color'
     Enter "23" (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'
     "Exit" (without quotation marks).






____________________________________________________________________________
<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 function "move points".
  Move mouse, select new position (with left mousebutton),
  save with right mousebutton.


Modify points of line or curve:
  select object with right mousebutton, select "move points".
    Select the point to move (yellow rectangle).
      Move mouse, select new position (with left 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>