Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parts by Python #190

Closed
berndhahnebach opened this issue Jun 11, 2019 · 2 comments
Closed

add parts by Python #190

berndhahnebach opened this issue Jun 11, 2019 · 2 comments

Comments

@berndhahnebach
Copy link
Contributor

https://forum.freecadweb.org/viewtopic.php?t=8559

https://forum.freecadweb.org/viewtopic.php?f=13&t=17720&start=20#p140161

this seam to work ...

import BOLTS
BOLTS.add_name('HEAProfile', {'type': 'HEA100', 'l' : 1000, 'arch' : False})
BOLTS.add_name('IPEProfile', {'type': 'IPE80', 'l' : 1000, 'arch' : False})

@berndhahnebach
Copy link
Contributor Author

berndhahnebach commented Jun 11, 2019

from BOLTS.freecad.nut.nut import nut1
params = {'name': 'Metric hexagon nut M3', 'e_min': 6.01, 's': 5.5, 'key': 'M3', 'm_max': 2.4, 'd1': 3.0}
nut1(params, App.ActiveDocument)

from BOLTS.freecad.extrusions.profiles import vslot20x20
params = {'name': 'V-Slot 20x20mm', 'l': 50, 'finish': 'Clear anodized'}
vslot20x20(params, App.ActiveDocument)

@berndhahnebach
Copy link
Contributor Author

#196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant