FCInfo Macro
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: FCInfo Macro
hi
new version GUI modified by rmu75 FCInfo_en_Ver_1-21-rmu_Docked.FCMacro
thank for report appreciation of the GUI (window, text, ...) and HDPI
mario
new version GUI modified by rmu75 FCInfo_en_Ver_1-21-rmu_Docked.FCMacro
thank for report appreciation of the GUI (window, text, ...) and HDPI
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: FCInfo Macro
Good day chat
I've installed FCInfo macro since Addons Manager but it doesn't work
I'm running Freecad 0.18 on Debian 10 Buster 32 bits
the error reads can decode line 242 correspondig to surface measurement
global uniteSs ; uniteSs = u"mm"+chr(178)
the macro FCInfo is
__title__ = "FCInfo"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-en.html"
__version__ = "01.21-2-rmu"
__date__ = "2019/06/11" #YYY/MM/DD
I appreciate in advance your help, thanks
I've installed FCInfo macro since Addons Manager but it doesn't work
I'm running Freecad 0.18 on Debian 10 Buster 32 bits
the error reads can decode line 242 correspondig to surface measurement
global uniteSs ; uniteSs = u"mm"+chr(178)
the macro FCInfo is
__title__ = "FCInfo"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-en.html"
__version__ = "01.21-2-rmu"
__date__ = "2019/06/11" #YYY/MM/DD
I appreciate in advance your help, thanks
Re: FCInfo Macro
hi Arturok
thanks for report
please try to copy the code directly on the "FCInfo_en_Ver_1-21-2-rmu_Docked.FCMacro" raw page
edit the FCinfo file in the python editor of FreeCAD and paste it (as manual installation) instead the existing code to see
home work fine with install with AddonManager
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
mario
thanks for report
please try to copy the code directly on the "FCInfo_en_Ver_1-21-2-rmu_Docked.FCMacro" raw page
edit the FCinfo file in the python editor of FreeCAD and paste it (as manual installation) instead the existing code to see
home work fine with install with AddonManager
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: FCInfo Macro
Hallo das Programm ist super. Ich habe ein kleinen Teil ihres Codes für eine anders Makro benutzt. Den Codeteil... QDockWidget und SelObserver .
Jetzt habe ich festgestellt, das beim schließen mit dem X-Button der SelObserver noch aktiv bleibt. Das ist nicht schön. Ich habe in meinen Makro folgende hinzugefügt.
def setupUi(self, MainWindow):
self.window = MainWindow
self.window.installEventFilter(self)'##########NEU
....NEU
def eventFilter(self, watched, event):
if watched is self.window and event.type() == QtCore.QEvent.Close:
self.onExit_X()
return super(Ui_MainWindow, self).eventFilter(watched, event)
....NEU
#Exit über X-Button
def onExit_X(self):
FreeCADGui.Selection.removeObserver(sel_server) # Uninstalls resident function (desactivated for read after LeftDock RightDock)
switchInertia = 1
try:
self.window.setAttribute(QtCore.Qt.WA_DeleteOnClose, True) # destroy
self.window.deleteLater() # destroy
self.window.destroy() # destroy
except Exception:
None
....
Ich bin kein Python-Experte, aber es funktioniert, der ObServer wird gekillt.
Für FreeCAD 0.19 mit Windows 10 64bit getestet.
Jetzt habe ich festgestellt, das beim schließen mit dem X-Button der SelObserver noch aktiv bleibt. Das ist nicht schön. Ich habe in meinen Makro folgende hinzugefügt.
def setupUi(self, MainWindow):
self.window = MainWindow
self.window.installEventFilter(self)'##########NEU
....NEU
def eventFilter(self, watched, event):
if watched is self.window and event.type() == QtCore.QEvent.Close:
self.onExit_X()
return super(Ui_MainWindow, self).eventFilter(watched, event)
....NEU
#Exit über X-Button
def onExit_X(self):
FreeCADGui.Selection.removeObserver(sel_server) # Uninstalls resident function (desactivated for read after LeftDock RightDock)
switchInertia = 1
try:
self.window.setAttribute(QtCore.Qt.WA_DeleteOnClose, True) # destroy
self.window.deleteLater() # destroy
self.window.destroy() # destroy
except Exception:
None
....
Ich bin kein Python-Experte, aber es funktioniert, der ObServer wird gekillt.
Für FreeCAD 0.19 mit Windows 10 64bit getestet.
Re: FCInfo Macro
hi
thanks for your contribution
do you want to use the BBCode for see properly your code
thanks
mario
thanks for your contribution
do you want to use the BBCode for see properly your code
thanks
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
-
- Posts: 14
- Joined: Wed Jun 15, 2016 1:09 pm
Re: FCInfo Macro
Hello
I want to use the Macro to save in my git the delta of my part.
When I save the file it open me all the time de directory where the Macro is stored.
Where can I found the change of default directory?
The best would be that each time we save the file it automaticly open the directory where the part is stored
Regards
Thierry
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: French/France (fr_FR)
I want to use the Macro to save in my git the delta of my part.
When I save the file it open me all the time de directory where the Macro is stored.
Where can I found the change of default directory?
The best would be that each time we save the file it automaticly open the directory where the part is stored
Regards
Thierry
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: French/France (fr_FR)
Re: FCInfo Macro
Hi
one or two more days and the new version will have this feature (and other features)
tray:
add path2 with your path and change the path to path2 after Qdialog for obtain this
line 6200 (open)
path2 = "C:/...your complete path"
OpenName = ""
OpenName, Filter = PySide2.QtWidgets.QFileDialog.getOpenFileName(None, "Read a txt file", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo
line 6370 (save)
path2 = "C:/...your complete path"
SaveName = ""
SaveName, Filter = PySide2.QtWidgets.QFileDialog.getSaveFileName(None, "Save a file FCInfo", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo
mario
one or two more days and the new version will have this feature (and other features)
tray:
add path2 with your path and change the path to path2 after Qdialog for obtain this
line 6200 (open)
path2 = "C:/...your complete path"
OpenName = ""
OpenName, Filter = PySide2.QtWidgets.QFileDialog.getOpenFileName(None, "Read a txt file", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo
Code: Select all
path2 = "C:/...your complete path"
OpenName = ""
OpenName, Filter = PySide2.QtWidgets.QFileDialog.getOpenFileName(None, "Read a txt file", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo (*.FCInfo);;Cvs (*.csv);;Ascii (*.asc);;TXT (*.txt)")#PySide2
line 6370 (save)
path2 = "C:/...your complete path"
SaveName = ""
SaveName, Filter = PySide2.QtWidgets.QFileDialog.getSaveFileName(None, "Save a file FCInfo", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo
Code: Select all
path2 = "C:\\"
SaveName = ""
SaveName, Filter = PySide2.QtWidgets.QFileDialog.getSaveFileName(None, "Save a file FCInfo", path2, "*.FCInfo *.csv *.asc *.txt;;FCInfo (*.FCInfo);;Cvs (*.csv);;Ascii (*.asc);;TXT (*.txt)") # PySide2
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
-
- Posts: 14
- Joined: Wed Jun 15, 2016 1:09 pm
Re: FCInfo Macro
Thanks mario52 for this answer.
I will to so and wait the new version
I will to so and wait the new version
Re: FCInfo Macro
Hi
Macro upgraded ver 1.26 install by addonManager
version Française FCInfo_fr_Ver_1-26
add info on Mesh and Points objects, decode colours, duplicate object or subObject, memorize the latest path and other preferences options
mario
Macro upgraded ver 1.26 install by addonManager
version Française FCInfo_fr_Ver_1-26
add info on Mesh and Points objects, decode colours, duplicate object or subObject, memorize the latest path and other preferences options
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: FCInfo Macro
Tere are a possiviliti to add material librari to select density from list.