Starting parts

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
User avatar
rockn
Posts: 1573
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Starting parts

Postby rockn » Tue Jul 02, 2013 9:36 pm

yorikvanhavre wrote:
rockn wrote:Yes wood-galaxy is my github username. Please authorized me ;)
Okay, that's done. I removed user Rockn... The guy must have wondered what I wanted :)
Thank you, I have push my first part !
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
jriegel
Site Admin
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Starting parts

Postby jriegel » Wed Jul 03, 2013 9:43 am

Shoogen and Yorik is right! We have to start and see how its develop.

But - don't forget to assign CC licenses (preferable CC-BY) , or we have a big problem in the future and have to throw out all the stuff we have no license fore....
Stop whining - start coding!
User avatar
yorik
Site Admin
Posts: 11510
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Starting parts

Postby yorik » Wed Jul 03, 2013 1:18 pm

jriegel wrote:But - don't forget to assign CC licenses (preferable CC-BY) , or we have a big problem in the future and have to throw out all the stuff we have no license fore....
Aah very well remembered. I'll add a license declaration on the repo. Rockn, since you already have a part there, your part is now officially CC-licensed, ok?
bajsi
Posts: 4
Joined: Fri Jun 28, 2013 6:36 pm

Re: Starting parts

Postby bajsi » Wed Jul 03, 2013 2:50 pm

This discussion escalated far beyond what I initially imagined.

Building a repository of models that can be easily shared is a good thing, but i still think that having 5..10 raw parametric parts that are commonly used in engineering and are easily accessible through menu, makes work a lot easier than just having a few primitives.

So, I will make a macro with a simple dialog and a few options to create raw parts - like in my first post. Probably, it is best to generate the parts and appropriate sketches by code instead of just loading previously modeled parts - would you agree?

If this turns out to be useful - it can later be easily implemented as a standard feature.
User avatar
rockn
Posts: 1573
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Starting parts

Postby rockn » Wed Jul 03, 2013 3:01 pm

yorikvanhavre wrote:
jriegel wrote:But - don't forget to assign CC licenses (preferable CC-BY) , or we have a big problem in the future and have to throw out all the stuff we have no license fore....
Aah very well remembered. I'll add a license declaration on the repo. Rockn, since you already have a part there, your part is now officially CC-licensed, ok?
Yes, of course, I'm agree with that.
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Starting parts

Postby shoogen » Wed Jul 03, 2013 3:25 pm

bajsi wrote:Probably, it is best to generate the parts and appropriate sketches by code instead of just loading previously modeled parts - would you agree?
As far as i remember the python interface to the constraints is not complete yet.
There are to sub-projects you might want to keep in mind.
1. There are feature requests to 'name' certain (esp. numerical) constraints.
2. When the resource framework will be fully functional, the part libraries can likely be viewed in FreeCAD (like a panel, or the task view)
IMHO creating sketches from python is ugly, because you have to give coordinates in the first place to create lines and arcs. And later keep track of the two geometry indexes.
ickby
Posts: 2918
Joined: Wed Oct 05, 2011 7:36 am

Re: Starting parts

Postby ickby » Wed Jul 03, 2013 3:42 pm

also remember that sharing python code in macros is not safe. Everything can be in such a macro, even code that emptys you harddrive. Thats the reason no python code is used in the freecad files and why it's a bad idea to build a repository upon macros.
User avatar
yorik
Site Admin
Posts: 11510
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Starting parts

Postby yorik » Wed Jul 03, 2013 4:23 pm

I agree with ickby and shoogen, but:
- even with incomplete sketcher, creating objects from python is interesting for several reasons, one of the best one being to show other people how it works, and after all scripts can be bettered later, once the sketcher gains more tools
- the dangerousness of python scripts can be much minimized (nullified) if they are on a "trusted" repository (such as my github account? 8-) )
so I would say why not? In any case, I find it interesting to host Parts in several forms, modeled objects and scripted ones... If this grows to something cool, we can see about next steps (how to integrate all that in FreeCAD)
bajsi
Posts: 4
Joined: Fri Jun 28, 2013 6:36 pm

Re: Starting parts

Postby bajsi » Sat Jul 06, 2013 1:17 pm

Hi,

attached is a package of macros for initial parametric parts: profiles L and U, round and rectangular tube, and round bar (which is basically equal to cylinder primitive).

Please, test it a little and let me know what you think.
Attachments
initParts_v000.zip
(16.7 KiB) Downloaded 80 times
jrheinlaender
Posts: 554
Joined: Sat Apr 07, 2012 2:42 am

Re: Starting parts

Postby jrheinlaender » Sat Jul 06, 2013 5:03 pm

One thing that comes to mind: Will we have separate templates for Part and PartDesign workbenches? Since one will be sketchbased and the other won't ...