Search found 19 matches

Go to advanced search

by vectronic
Mon Feb 18, 2019 9:35 am
Forum: Users Showcase
Topic: A toy brick macro
Replies: 9
Views: 2471

Re: A toy brick macro

Initial version of technic holes has been pushed to GitHub, together with some bug fixes and cleanups. Correct measurements for some of the hole features are pending as well as support for axle-shaped holes...
by vectronic
Wed Feb 13, 2019 12:43 pm
Forum: Python scripting and macros
Topic: Body.Tip not updated when a Mirrored Feature is added.
Replies: 2
Views: 111

Re: Body.Tip not updated when a Mirrored Feature is added.

Hi, thanks for the reply. I hadn't considered updating the Body.Tip myself when creating the Mirror Feature. All the other features e.g. Pad, Pocket seem to update the Tip without needing to do it explicitly...? Anyway in the case of creating a Mirror I have now updated the Tip explicitly and it wor...
by vectronic
Sun Feb 10, 2019 2:25 pm
Forum: Python scripting and macros
Topic: Body.Tip not updated when a Mirrored Feature is added.
Replies: 2
Views: 111

Body.Tip not updated when a Mirrored Feature is added.

Hello, I am hoping someone can tell me whether I have either found a bug or am doing something wrong. I can create a Body in Part Design and then add a sketch and features such as Pads and Pockets (all via the Python API). I can set the latest feature visible using the Python API via: myBody.Tip.Vie...
by vectronic
Wed Jan 30, 2019 10:03 am
Forum: Users Showcase
Topic: A toy brick macro
Replies: 9
Views: 2471

Re: A toy brick macro

Sorry, should have pointed to the TODO items from the readme in GitHub: https://github.com/vectronic/freecad-legify-macros#todo Confirm some dimensions Pin Rendering Technic Hole Rendering Support modern tile where the bottom has a small outside pocket (and check if fillet is also required) Support ...
by vectronic
Mon Jan 21, 2019 9:51 pm
Forum: Users Showcase
Topic: A toy brick macro
Replies: 9
Views: 2471

Re: A toy brick macro

fosselius wrote:
Mon Jan 21, 2019 3:25 pm
Awesome! I am going to build a WB for building legos, is it ok if i include your script as well?
I like what you have done!

You are absolutely welcome to make use of this if you wish.
by vectronic
Sun Jan 20, 2019 9:13 pm
Forum: Users Showcase
Topic: A toy brick macro
Replies: 9
Views: 2471

Re: A toy brick macro

With pleasure :-)

Image
by vectronic
Fri Jan 18, 2019 11:42 pm
Forum: Users Showcase
Topic: A toy brick macro
Replies: 9
Views: 2471

A toy brick macro

Hello All, I've been working on this macro for a while with the following aims: Get to grips with FreeCAD and concepts for parametric modelling: sketches, constraints, datum planes etc. Use Python scripting with FreeCAD The real challenge I gave myself was to use Python scripting with the PartDesign...
by vectronic
Sat Jan 12, 2019 12:40 pm
Forum: Python scripting and macros
Topic: Scripted references to body origin planes
Replies: 6
Views: 261

Re: Scripted references to body origin planes

Apparently, in python - no. In C++, there is a plenty of methods for obtaining specific pieces: https://github.com/FreeCAD/FreeCAD/blob/c6745d1b5b0af8284f8dd485046ec570c4ca68e0/src/App/Origin.h#L75 So it's just a matter of adding py interface. I invite you to write a feature request in tracker, ple...
by vectronic
Sun Dec 16, 2018 12:05 am
Forum: Open discussion
Topic: Freecad 0.17 - Pad up to face - Datum Plane is invalid
Replies: 39
Views: 2859

Re: Freecad 0.17 - Pad up to face - Datum Plane is invalid

Just following up on this again. Trying with FreeCAD_0.18-15310.c88a64e-OSX-x86_64-Qt5.dmg I still the issue described in my previous comment on this thread and in the simple attached example - The second sketch item does not appear when padding up to face. If you change this to a dimension based pa...
by vectronic
Sat Oct 13, 2018 9:53 pm
Forum: Python scripting and macros
Topic: Scripted references to body origin planes
Replies: 6
Views: 261

Scripted references to body origin planes

Hello, I can reference a body created in the PartDesign workbench using this (just an example): b = Gui.getDocument('Unnamed').ActiveView.getActiveObject('pdbody') If I wanted to reference the YZ plane of the Origin of this body is there any preferred way other than the following: yz = b.Origin.Orig...

Go to advanced search