273 lines
24 KiB
HTML
273 lines
24 KiB
HTML
<html><head><title>Macro FCCamera</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Macro FCCamera</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" width="100%" style="float: right; width: 230px; margin-left: 10px;">
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Macro_FCCamera"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_00.png" class="image"><img alt="FCCamera 00.png" src="32px-FCCamera_00.png" width="32" height="32" srcset="/wiki/images/thumb/2/25/FCCamera_00.png/48px-FCCamera_00.png 1.5x, FCCamera_00.png 2x" /></a> Macro FCCamera</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen.
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Author
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-author"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Mario52" title="User:Mario52">Mario52</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Links
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Macros_recipes.html" title="Macros recipes">Macros recipes</a><br /><a href="How_to_install_macros.html" title="How to install macros">How to install macros</a><br /><a href="Customize_Toolbars.html" title="Customize Toolbars">How to customize toolbars</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Version
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-version">0.7
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2018-01-03
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="#Macro_FCCamera"><span class="tocnumber">1</span> <span class="toctext">Macro FCCamera</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Section_Photo"><span class="tocnumber">4</span> <span class="toctext">Section Photo</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Icons"><span class="tocnumber">5</span> <span class="toctext">Icons</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Links"><span class="tocnumber">6</span> <span class="toctext">Links</span></a></li>
|
|
<li class="toclevel-1 tocsection-6"><a href="#Script"><span class="tocnumber">7</span> <span class="toctext">Script</span></a></li>
|
|
<li class="toclevel-1 tocsection-7"><a href="#Examples"><span class="tocnumber">8</span> <span class="toctext">Examples</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-8"><a href="#How_to_place_an_angle_hole"><span class="tocnumber">8.1</span> <span class="toctext">How to place an angle hole</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-9"><a href="#Version"><span class="tocnumber">9</span> <span class="toctext">Version</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr>
|
|
</table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera, align view to face or to axis, align the object to view.
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<p>Use is easy,
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCCamera_00.png" class="image" title="FCCamera"><img alt="FCCamera" src="Macro_FCCamera_00.png" width="212" height="533" /></a></div>
|
|
<p><b>Camera of Axis</b>: The dialog box to enter the rotation value angle in degrees.
|
|
</p><p><b>Angle rotation Axis in degrees</b>: Select the rotation axis <b>X Y</b> or <b>Z</b>.
|
|
</p><p><b>Axe of rotation</b>
|
|
</p>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_01.png" class="image"><img alt="FCCamera 01.png" src="24px-FCCamera_01.png" width="24" height="24" srcset="/wiki/images/thumb/f/ff/FCCamera_01.png/36px-FCCamera_01.png 1.5x, /wiki/images/thumb/f/ff/FCCamera_01.png/48px-FCCamera_01.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Accept the rotation</span> : Accept the rotation give to angle selected</li></ul>
|
|
<p><b>Virtual</b>
|
|
</p>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_02.png" class="image"><img alt="FCCamera 02.png" src="24px-FCCamera_02.png" width="24" height="24" srcset="/wiki/images/thumb/d/d8/FCCamera_02.png/36px-FCCamera_02.png 1.5x, /wiki/images/thumb/d/d8/FCCamera_02.png/48px-FCCamera_02.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Detect camera orientation</span> : Detect the camera orientation and print in report view. The returned value is the value provided by the function getCameraOrientation().</li></ul>
|
|
<p><b>Align view to face selected</b>
|
|
</p>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_03.png" class="image"><img alt="FCCamera 03.png" src="24px-FCCamera_03.png" width="24" height="24" srcset="/wiki/images/thumb/f/f5/FCCamera_03.png/36px-FCCamera_03.png 1.5x, /wiki/images/thumb/f/f5/FCCamera_03.png/48px-FCCamera_03.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">To Face.</span> : Align the view to the selected face. Click and repeat the click for <b>NormalAt</b> : "(0,0,1) (0,0,-1) (0,1,0) (0,-1,0) (1,0,0) (-1,0,0)"</li></ul>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_04.png" class="image"><img alt="FCCamera 04.png" src="24px-FCCamera_04.png" width="24" height="24" srcset="/wiki/images/thumb/7/78/FCCamera_04.png/36px-FCCamera_04.png 1.5x, /wiki/images/thumb/7/78/FCCamera_04.png/48px-FCCamera_04.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">To Axis.</span> : Align the view to Axis face selected. Click and repeat the click for <b>Surface Axis</b> : "(0,0,1) (0,0,-1) (0,1,0) (0,-1,0) (1,0,0) (-1,0,0)"</li></ul>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_05.png" class="image"><img alt="FCCamera 05.png" src="24px-FCCamera_05.png" width="24" height="24" srcset="/wiki/images/thumb/d/d5/FCCamera_05.png/36px-FCCamera_05.png 1.5x, /wiki/images/thumb/d/d5/FCCamera_05.png/48px-FCCamera_05.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Align object to view.</span> : Align the object selected to the actual view. The changed values are : Rotation Axis((X, Y, Z), Angle) Same Euler angles : Yaw, Pitch, Roll, The Translation is not modify.</li></ul>
|
|
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_06.png" class="image"><img alt="FCCamera 06.png" src="24px-FCCamera_06.png" width="24" height="24" srcset="/wiki/images/thumb/6/62/FCCamera_06.png/36px-FCCamera_06.png 1.5x, /wiki/images/thumb/6/62/FCCamera_06.png/48px-FCCamera_06.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Create plane of view.</span> : A circular plane is created facing the screen to mouse click coordinates on an object. The radius of the plane is equal to the maximum dimension of BoundBox. If no object is selected, the plane is created to 0, 0, 0 coordinates with a radius of 20 mm. The radius is modifiable to line 515:</li></ul>
|
|
<pre>rayon = 20 # Radius of plane </pre>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_07.png" class="image"><img alt="FCCamera 07.png" src="24px-FCCamera_07.png" width="24" height="23" srcset="/wiki/images/thumb/e/eb/FCCamera_07.png/36px-FCCamera_07.png 1.5x, FCCamera_07.png 2x" /></a> Reset.</span> : Reset all values.</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_00.png" class="image"><img alt="FCCamera 00.png" src="24px-FCCamera_00.png" width="24" height="24" srcset="/wiki/images/thumb/2/25/FCCamera_00.png/36px-FCCamera_00.png 1.5x, /wiki/images/thumb/2/25/FCCamera_00.png/48px-FCCamera_00.png 2x" /></a> Photo.</span> : Section save the screen rotation an image in angle value</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_08.png" class="image"><img alt="FCCamera 08.png" src="24px-FCCamera_08.png" width="24" height="24" srcset="/wiki/images/thumb/c/ca/FCCamera_08.png/36px-FCCamera_08.png 1.5x, FCCamera_08.png 2x" /></a> Quit.</span> : Quit FCCamera.</li></ul>
|
|
<h2><span class="mw-headline" id="Section_Photo">Section Photo</span></h2>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCCamera_00b.png" class="image" title="FCCamera"><img alt="FCCamera" src="Macro_FCCamera_00b.png" width="211" height="223" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
</p>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ComboBox Actual </span> : choice your screen definition for the image format
|
|
<ul><li>Available (pre-defined):
|
|
<ul><li>"Actual" (definition actual of screen)</li>
|
|
<li>"Icon 16 x 16"</li>
|
|
<li>"Icon 32 x 32"</li>
|
|
<li>"Icon 64 x 64"</li>
|
|
<li>"Icon 128 x 128"</li>
|
|
<li>"CGA 320 x 200"</li>
|
|
<li>"QVGA 320 x 240"</li>
|
|
<li>"VGA 640 x 480"</li>
|
|
<li>"SVGA 800 x 600"</li>
|
|
<li>"XGA 1024 x 768"</li>
|
|
<li>"XGA+ 1152 x 864"</li>
|
|
<li>"SXGA 1280 x 1024"</li>
|
|
<li>"SXGA+ 1400 x 1050"</li>
|
|
<li>"UXGA 1600 x 1200"</li>
|
|
<li>"QXGA 2048 x 1536"</li>
|
|
<li>"Free"</li></ul></li></ul></li></ul>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SpinBox X and Y </span></li></ul>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ComboBox Format image</span>
|
|
<ul><li>Available :
|
|
<ul><li>"BMP *.bmp"</li>
|
|
<li>"ICO *.ico"</li>
|
|
<li>"JPEG *.jpeg"</li>
|
|
<li>"JPG *.jpg"</li>
|
|
<li>"PNG *.png" (by default)</li>
|
|
<li>"PPM *.ppm"</li>
|
|
<li>"TIF *.tif"</li>
|
|
<li>"TIFF *.tiff"</li>
|
|
<li>"XBM *.xbm"</li>
|
|
<li>"XPM *.xpm"</li></ul></li></ul></li></ul>
|
|
<ul><li>Line 1 : Number image calculated by the angle give (ex: angle 60 degrees = 360 (complete rotation) / 60 (angle) = 6 images</li></ul>
|
|
<ul><li>Line 2 : The definition of screen used</li></ul>
|
|
<ul><li>Background image :
|
|
<ul><li> Actual : save image with the screen colour actual</li>
|
|
<li> White : save image with the screen colour white</li>
|
|
<li> Black : save image with the screen colour black</li></ul></li></ul>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_00.png" class="image"><img alt="FCCamera 00.png" src="24px-FCCamera_00.png" width="24" height="24" srcset="/wiki/images/thumb/2/25/FCCamera_00.png/36px-FCCamera_00.png 1.5x, /wiki/images/thumb/2/25/FCCamera_00.png/48px-FCCamera_00.png 2x" /></a> Launch</span> : Open the file window , give the name and the path</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_07.png" class="image"><img alt="FCCamera 07.png" src="24px-FCCamera_07.png" width="24" height="23" srcset="/wiki/images/thumb/e/eb/FCCamera_07.png/36px-FCCamera_07.png 1.5x, FCCamera_07.png 2x" /></a> Reset</span> : Reset the default value</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_00.png" class="image"><img alt="FCCamera 00.png" src="24px-FCCamera_00.png" width="24" height="24" srcset="/wiki/images/thumb/2/25/FCCamera_00.png/36px-FCCamera_00.png 1.5x, /wiki/images/thumb/2/25/FCCamera_00.png/48px-FCCamera_00.png 2x" /></a> Return</span> : Quit the photo panel and return to FCCamera panel</li></ul>
|
|
<h2><span class="mw-headline" id="Icons">Icons</span></h2>
|
|
<p>Download the file image and copy in your macro repertory.
|
|
</p><p>Click the image, in the new window position the mouse over the image, click the right mouse and do "Save target as ..."
|
|
</p><p>The path of icons is displayed in the View report
|
|
</p><p><b>ex:</b> Path locality to FCCamera.....images.png [ C:\Users\xx\AppData\Roaming\FreeCAD\ ]
|
|
</p><p>You can change the path by changing the path in the line 165
|
|
</p><p><b>Icons program :</b>
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 535px"><div style="width: 535px">
|
|
<div class="thumb" style="width: 530px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_15.png" class="image"><img alt="" src="489px-FCCamera_15.png" width="489" height="300" srcset="/wiki/images/thumb/a/a0/FCCamera_15.png/733px-FCCamera_15.png 1.5x, /wiki/images/a/a0/FCCamera_15.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>How copy the icons in your macros directory.
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_00.png" class="image" title="Logo FCCamera"><img alt="Logo FCCamera" src="FCCamera_00.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_01.png" class="image" title="Accept"><img alt="Accept" src="FCCamera_01.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_02.png" class="image" title="Detect"><img alt="Detect" src="FCCamera_02.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_03.png" class="image" title="To Face"><img alt="To Face" src="FCCamera_03.png" width="64" height="64" /></a>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_04.png" class="image" title="To Axis"><img alt="To Axis" src="FCCamera_04.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_05.png" class="image" title="Align Object to View"><img alt="Align Object to View" src="FCCamera_05.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_06.png" class="image" title="Create plane"><img alt="Create plane" src="FCCamera_06.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_07.png" class="image" title="Reset"><img alt="Reset" src="FCCamera_07.png" width="47" height="45" /></a>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_08.png" class="image" title="Quit"><img alt="Quit" src="FCCamera_08.png" width="48" height="48" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<p><b>Icons tableau :</b>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_Axis_rotation_X.png" class="image" title="Axis X"><img alt="Axis X" src="FCCamera_Axis_rotation_X.png" width="166" height="98" /></a>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_Axis_rotation_Y.png" class="image" title="Axis Y"><img alt="Axis Y" src="FCCamera_Axis_rotation_Y.png" width="166" height="98" /></a>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_Axis_rotation_Z.png" class="image" title="Axis Z"><img alt="Axis Z" src="FCCamera_Axis_rotation_Z.png" width="166" height="98" /></a>
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_Axis_rotation_D.png" class="image" title="Direction Axis"><img alt="Direction Axis" src="FCCamera_Axis_rotation_D.png" width="166" height="98" /></a>
|
|
</p><p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Links">Links</span></h2>
|
|
<p>Related Links with FCCamera
|
|
</p><p><a href="Macro_Rotate_View.html" title="Macro Rotate View">Macro Rotate View</a>, <a href="Macro_Align_Object_to_View.html" title="Macro Align Object to View">Macro Align Object to View</a>, <a href="Macro_Align_Face_Object_to_View.html" title="Macro Align Face Object to View">Macro Align Face Object to View</a>, <a href="Macro_WorkFeatures.html" title="Macro WorkFeatures">Macro WorkFeatures</a>
|
|
</p><p>Discussion Forum <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=22&t=9056">MACRO:Work Feature 2014_12</a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p>Download the macro to Gist <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/4aa545c23b323cf68824"><b>Macro FCCamera.FCMacro</b></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Examples">Examples</span></h2>
|
|
<h3><span class="mw-headline" id="How_to_place_an_angle_hole">How to place an angle hole</span></h3>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_09.png" class="image"><img alt="" src="300px-FCCamera_09.png" width="300" height="217" srcset="/wiki/images/thumb/8/85/FCCamera_09.png/450px-FCCamera_09.png 1.5x, /wiki/images/thumb/8/85/FCCamera_09.png/600px-FCCamera_09.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Create your object
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_10.png" class="image"><img alt="" src="300px-FCCamera_10.png" width="300" height="217" srcset="/wiki/images/thumb/1/10/FCCamera_10.png/450px-FCCamera_10.png 1.5x, /wiki/images/thumb/1/10/FCCamera_10.png/600px-FCCamera_10.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Create one cylinder and positionning this <br />Give your axis, angle inclination and click the button <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_01.png" class="image"><img alt="FCCamera 01.png" src="24px-FCCamera_01.png" width="24" height="24" srcset="/wiki/images/thumb/f/ff/FCCamera_01.png/36px-FCCamera_01.png 1.5x, /wiki/images/thumb/f/ff/FCCamera_01.png/48px-FCCamera_01.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Accept the rotation</span>
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_11.png" class="image"><img alt="" src="300px-FCCamera_11.png" width="300" height="217" srcset="/wiki/images/thumb/a/aa/FCCamera_11.png/450px-FCCamera_11.png 1.5x, /wiki/images/thumb/a/aa/FCCamera_11.png/600px-FCCamera_11.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Select your cylinder for create your hole
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_12.png" class="image"><img alt="" src="300px-FCCamera_12.png" width="300" height="217" srcset="/wiki/images/thumb/f/f1/FCCamera_12.png/450px-FCCamera_12.png 1.5x, /wiki/images/thumb/f/f1/FCCamera_12.png/600px-FCCamera_12.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>In FCCamera click the button <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_05.png" class="image"><img alt="FCCamera 05.png" src="24px-FCCamera_05.png" width="24" height="24" srcset="/wiki/images/thumb/d/d5/FCCamera_05.png/36px-FCCamera_05.png 1.5x, /wiki/images/thumb/d/d5/FCCamera_05.png/48px-FCCamera_05.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Align Object to View</span>
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_13.png" class="image"><img alt="" src="300px-FCCamera_13.png" width="300" height="217" srcset="/wiki/images/thumb/0/09/FCCamera_13.png/450px-FCCamera_13.png 1.5x, /wiki/images/thumb/0/09/FCCamera_13.png/600px-FCCamera_13.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>The cylinder moves to 15 degrees (take the camera position)<br />do your Boolean operation
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:46.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCCamera_14.png" class="image"><img alt="" src="300px-FCCamera_14.png" width="300" height="217" srcset="/wiki/images/thumb/6/64/FCCamera_14.png/450px-FCCamera_14.png 1.5x, /wiki/images/thumb/6/64/FCCamera_14.png/600px-FCCamera_14.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Your hole 15 degrees
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p>The same result can be achieved by creating a plan in the corner gave the mouse click position and a sketch.
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 785px"><div style="width: 785px">
|
|
<div class="thumb" style="width: 780px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCCamera_Align_To_Face.gif" class="image"><img alt="" src="Macro_FCCamera_Align_To_Face.gif" width="747" height="700" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Example placement spring to face axis
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<h2><span class="mw-headline" id="Version">Version</span></h2>
|
|
<ul><li><b>ver 07 (03/01/2018):</b> add photo panel and rotation to axis selected (wire, edge, line )</li></ul>
|
|
<ul><li><b>ver 0.6 (13/12/2016):</b> new system for search the macro path directly in the preferences </li></ul>
|
|
<pre>#path = FreeCAD.ConfigGet("AppHomePath")
|
|
#path = FreeCAD.ConfigGet("UserAppData")
|
|
#path = "your path"
|
|
param = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macro")# macro path
|
|
path = param.GetString("MacroPath","") + "/" # macro path
|
|
path = path.replace("\\","/")
|
|
App.Console.PrintMessage("Path locality to FCCamera.....images.png [ " + path + " ]"+"\n")
|
|
</pre>
|
|
<ul><li><b>ver 0.5 06/09/2016:</b> correct name "FCCamera_Axis_rotation_X.png" in reset block</li></ul>
|
|
<ul><li><b>ver 0.4 28/02/2016 :</b> add display all camera detection and the <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=13&t=14213#p114667">Direction</a> </li></ul>
|
|
<ul><li><b>ver 0.3 18/03/2015 :</b> modify line 492 replace "<b>pl.Base = App.Vector(0,0,0)</b>" to "<b>pl.Base = sel[0].Placement.Base</b>" now no longer moves the form at point (0,0,0) and leaves has the coordinates</li></ul>
|
|
<ul><li><b>ver 0.2 25/02/2015 :</b> correct names files in for compatibility Linux (case sensitive) thanks microelly2</li></ul>
|
|
<p><br />
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_FCCamera&oldid=259936">http://www.freecadweb.org/wiki/index.php?title=Macro_FCCamera&oldid=259936</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |