Work Features Macro

Need help, or want to share a macro? Post here!
User avatar
JMG
Posts: 278
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Work Features Macro

Postby JMG » Sun May 04, 2014 7:03 am

Hi all!

I want to share the "macro" shown here:
https://www.youtube.com/watch?v=P6aRqReXGYI

Download link and instructions:
http://linuxforanengineer.blogspot.com. ... ase-1.html


Some functions need to be rewritten and I have to code few more. Another fault is that I'm unable to get this working
as a macro.
But this are things I'm trying to solve at the moment. ;)


Greetings!
Last edited by JMG on Sat May 10, 2014 2:01 pm, edited 2 times in total.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
mario52
Posts: 2807
Joined: Wed May 16, 2012 2:13 pm

Re: Work Features Macro

Postby mario52 » Sun May 04, 2014 1:24 pm

hi JMG
joli joli
if you want you can create a page Macros recipes for your beautiful macro
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.
User avatar
rockn
Posts: 1595
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Work Features Macro

Postby rockn » Sat May 10, 2014 12:14 am

Hi JMG ! it's a very cool feature ! I think I going to use it a lot. I made a short GUI for your macro.
Look here : https://gist.github.com/wood-galaxy
Select and clic the right button.
There is now two files : the program and the ui file.
workfeature_screen.png
workfeature_screen.png (75.61 KiB) Viewed 4844 times
Do you like it ?
[edit] edit the url
Last edited by rockn on Sat May 10, 2014 1:24 am, edited 1 time in total.
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
danielfalck
Posts: 395
Joined: Fri Oct 07, 2011 8:58 pm
Location: Beaverton,Oregon, USA
Contact:

Re: Work Features Macro

Postby danielfalck » Sat May 10, 2014 12:41 am

Hi rockn. I don't see any code in the link.
User avatar
rockn
Posts: 1595
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Work Features Macro

Postby rockn » Sat May 10, 2014 1:25 am

Hi danielfalck, thank you for notice that. I have updated the link. Do you see code now ?
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
danielfalck
Posts: 395
Joined: Fri Oct 07, 2011 8:58 pm
Location: Beaverton,Oregon, USA
Contact:

Re: Work Features Macro

Postby danielfalck » Sat May 10, 2014 3:48 am

Yes, I see it now-thanks!
User avatar
JMG
Posts: 278
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Work Features Macro

Postby JMG » Sat May 10, 2014 12:18 pm

Hi rokn!
Yes, I like it :D
I've not tried it directly but I do not doubt it works (I'm having problems with Mint at the moment).

When I started this, I thougth about creating a gui after coding all the functions that I think are needed.
But you just did it :D, so many thanks!

Something I'm changing is the Origin option, because Origin objects are checked to exist every time the whole script runs. The user has no interactivity with that function.
And I'm also adding tooltips and images to the buttons. I will upload once I get it to work ;)

Thanks again for your efforts.

Greetings, Javier.

edit: I don't know how or why, but the gist containing WorkFeatures has got deleted.
The new one is here:
https://gist.github.com/JMG-SP/c70f1e4e462bc9d13cab
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
microelly2
Posts: 4560
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Work Features Macro

Postby microelly2 » Sat Dec 06, 2014 8:05 am

hallo javier,

I want to create a workbench on top of your macro to make its easier to use for nonpythons.

have you already done something in this direction - so I need not to do it twice.
But in the other case I will create a toolbar with your methods.
User avatar
JMG
Posts: 278
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Work Features Macro

Postby JMG » Sun Dec 07, 2014 7:52 pm

Hello microelly.

All I have is what is shown here, feel free of modifiying or adding what you want.
I'm glad to hear this is being useful. :)
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
microelly2
Posts: 4560
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Work Features Macro

Postby microelly2 » Tue Dec 09, 2014 4:03 pm

hello javier

I have startet that workbench.

https://github.com/microelly2/FreeCAD_workfeatures

The design of the icons will become a task to my younger students next spring
so they can participate the development process.
I will integrate some of my often used macros too next weeks.
I will change the notification to make the tool more robust.