MACRO:Work Feature 2014_12

Need help, or want to share a macro? Post here!
mario52
Posts: 2690
Joined: Wed May 16, 2012 2:13 pm

Re: MACRO:Work Feature 2014_12

Postby mario52 » Sat Nov 16, 2019 10:42 am

hi lboc
lboc wrote:
Tue Nov 12, 2019 11:25 am
If you have multiple levels of parts with where each part is rotated , the align view does not really work well.
more explanation , tools used, screenshot ...

thanks

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
cram
Posts: 156
Joined: Mon Dec 05, 2016 5:11 am
Location: Australia

Re: MACRO:Work Feature 2014_12

Postby cram » Thu Dec 05, 2019 11:05 am

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)


Hi, I just tried to install this macro, there appears to be two listed in the freecad addon repository one named "workfeature" and another name "workfeature-macro" . "workfeature" doesn't seem to have the amount of function as has been described earlier in this thread, so uninstalled it. Attempted to install "workfeature-macro" but it doesn't appear to complete install, however states installed under the addon repository but does not show up in the workbenches. Any suggestions?
mario52
Posts: 2690
Joined: Wed May 16, 2012 2:13 pm

Re: MACRO:Work Feature 2014_12

Postby mario52 » Fri Dec 06, 2019 11:06 am

hi

"workfeature-macro" is a macro and not a workbench (contrary to "workfeature") you must run the macro "start_WF.py" (or start_WF.FCMacro) in :

Code: Select all

C:\Users\Mario\AppData\Roaming\FreeCAD\Mod\WorkFeature\
or if the macro in helpfull fot you (as my) you must modify the property of the FreeCAD shortcut as this command line:

Code: Select all

"C:\Your FreeCAD name\bin\FreeCAD.exe" "C:\Users\UserName\AppData\Roaming\FreeCAD\Mod\WorkFeature\start_WF.FCMacro"
(correct the path if the macro is installed in other directory)

try this and report please

PS: the new "workfeature" workbench (same feature of the macro in the future) is still in development by rentlau_64 but personally i prefer the macro she is always available and not the workbench

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
cram
Posts: 156
Joined: Mon Dec 05, 2016 5:11 am
Location: Australia

Re: MACRO:Work Feature 2014_12

Postby cram » Sat Dec 07, 2019 12:55 pm

mario52 wrote:
Fri Dec 06, 2019 11:06 am
hi

"workfeature-macro" is a macro and not a workbench (contrary to "workfeature") you must run the macro "start_WF.py" (or start_WF.FCMacro) in :

Code: Select all

C:\Users\Mario\AppData\Roaming\FreeCAD\Mod\WorkFeature\
or if the macro in helpfull fot you (as my) you must modify the property of the FreeCAD shortcut as this command line:

Code: Select all

"C:\Your FreeCAD name\bin\FreeCAD.exe" "C:\Users\UserName\AppData\Roaming\FreeCAD\Mod\WorkFeature\start_WF.FCMacro"
(correct the path if the macro is installed in other directory)

try this and report please

PS: the new "workfeature" workbench (same feature of the macro in the future) is still in development by rentlau_64 but personally i prefer the macro she is always available and not the workbench

mario
Thanks Mario, my install of freecad was not pointing to the correct directory for the macro, and yes I was expecting it to be a workbench. I have found it and able to launch, haven't yet tried to use the fuctions of workfeatures yet. What is the difference between WF.FCMacro and start_WF.py ?
mario52
Posts: 2690
Joined: Wed May 16, 2012 2:13 pm

Re: MACRO:Work Feature 2014_12

Postby mario52 » Sat Dec 07, 2019 4:30 pm

hi

good
cram wrote:
Sat Dec 07, 2019 12:55 pm
What is the difference between WF.FCMacro and start_WF.py ?
for the code any difference same code

start_WF.FCMacro run as a macro FreeCAD

and start_WF.py with the interpreter Python

Code: Select all

import start_WF
from importlib import reload
reload(start_WF)
enjoy

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
cram
Posts: 156
Joined: Mon Dec 05, 2016 5:11 am
Location: Australia

Re: MACRO:Work Feature 2014_12

Postby cram » Sun Dec 08, 2019 10:41 am

mario52 wrote:
Sat Dec 07, 2019 4:30 pm
hi

good
cram wrote:
Sat Dec 07, 2019 12:55 pm
What is the difference between WF.FCMacro and start_WF.py ?
for the code any difference same code

start_WF.FCMacro run as a macro FreeCAD

and start_WF.py with the interpreter Python

Code: Select all

import start_WF
from importlib import reload
reload(start_WF)
enjoy

mario
Cheers Mario, thank you, I now understand.