Description |
---|
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. Macro version: 0.15b Last modified: 2024/12/19 FreeCAD version: 1.00 and more Download: ToolBar Icon Author: Mario52 |
Author |
Mario52 |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
0.15b |
Date last modified |
2024/12/19 |
FreeCAD Version(s) |
1.00 and more |
Default shortcut |
None |
See also |
None |
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.
Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro
# This code is copied instead of the original macro code # to guide the user to the online download page. # Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki # or if the RAW code URL is somewhere else in the wiki. from PySide import QtGui, QtCore diag = QtGui.QMessageBox(QtGui.QMessageBox.Information, "Information", "This macro must be downloaded from this link\n" "\n" "https://gist.githubusercontent.com/mario52a/4aa545c23b323cf68824/raw/b31c64d26788b796750095eca4a6b92803537732/Macro%2520FCCamera.FCMacro" + "\n" "\n" "Quit this window to access the download page") diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) diag.setWindowModality(QtCore.Qt.ApplicationModal) diag.exec_() import webbrowser webbrowser.open("https://gist.githubusercontent.com/mario52a/4aa545c23b323cf68824/raw/b31c64d26788b796750095eca4a6b92803537732/Macro%2520FCCamera.FCMacro")
Camera of Axis: The dialog box to enter the rotation value angle in degrees.
Angle rotation Axis in degrees: Select the rotation axis X, Y or Z.
Axe of rotation
Virtual
Align view to face selected
rayon = 20 # Radius of plane
Related Links with FCCamera
Discussion Forum MACRO:Work Feature 2014_12
Download the icon files FCCamera_Icones.zip
Download the macro to Gist Macro FCCamera.FCMacro
Create your object
Select your cylinder for create your hole
The cylinder moves to 15 degrees (it takes the camera's position). Do your Boolean operation
Your hole 15 degrees
The same result can be achieved by creating a plan in the corner given by the mouse click position and a sketch.
example of the positioning of a spring on an axis of a face
Example photo rotation and save images (you must create one animate Gif with GIMP)
####
try:
import webbrowser
webbrowser.open("http://www.freecadweb.org/wiki/index.php?title=Macro_FCCamera")
except Exception:
None
####
####
import urllib
from urllib import request
contentPage = request.urlopen("https://wiki.freecadweb.org/Macro_FCCamera").readlines()
####
#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")