Search found 35 matches
- Tue Nov 22, 2022 7:31 pm
- Forum: Help on using FreeCAD
- Topic: Aligning centers of bounding boxes of compound?
- Replies: 7
- Views: 656
Re: Aligning centers of bounding boxes of compound?
And thanks again, @thomas-neemann : here is a suggestion https://www.youtube.com/watch?v=5jGeNHqmi-o Ah, nice - the technique with "3D diagonals" at both reference object, and target compound, and aligning versus the centers of those lines, should work fine for rectangular shapes! Many tha...
- Tue Nov 22, 2022 7:28 pm
- Forum: Help on using FreeCAD
- Topic: Aligning centers of bounding boxes of compound?
- Replies: 7
- Views: 656
Re: Aligning centers of bounding boxes of compound?
Many thanks, @Roy_043: For a parametric solution use this expression for the Position of the Compound: Box.Shape.CenterOfGravity - .Shape.CenterOfGravity + .Placement.Base See Expressions for more information. Excellent, thanks a lot; that seems to work fine - I was a bit puzzled where the expressio...
- Tue Nov 22, 2022 7:13 pm
- Forum: Help on using FreeCAD
- Topic: Aligning centers of bounding boxes of compound?
- Replies: 7
- Views: 656
Re: Aligning centers of bounding boxes of compound?
Many thanks, @thomas-neemann: I would do it this way https://www.youtube.com/watch?v=k2kVe4SCcEU Pretty neat, thanks! Since the GUI in the video is in German, I'll try to rewrite the procedure here: Open Arch workbench Click on the Line tool Draw a "diagonal" line from one extreme point (o...
- Tue Nov 22, 2022 6:30 pm
- Forum: Help on using FreeCAD
- Topic: Aligning centers of bounding boxes of compound?
- Replies: 7
- Views: 656
Aligning centers of bounding boxes of compound?
Using: OS: Ubuntu Core 20 (MATE/mate) Word size of FreeCAD: 64-bit Version: 0.20.1.29177 +233 (Git) Snap 245 Build type: Release Branch: tag: 0.20.1 Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563 Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3 Locale: English/United States (en_US) Install...
- Mon Sep 26, 2022 8:59 am
- Forum: Help on using FreeCAD
- Topic: Failure with import - single path of several will not close/wrong "fill"
- Replies: 2
- Views: 269
Failure with import - single path of several will not close/wrong "fill"
Hi all, I use: OS: Ubuntu Core 20 (MATE/mate) Word size of FreeCAD: 64-bit Version: 0.20.1.29177 +233 (Git) Snap 245 Build type: Release Branch: tag: 0.20.1 Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563 Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3 Locale: English/United States (en_US)...
- Sat Jan 12, 2019 4:33 pm
- Forum: Python scripting and macros
- Topic: Temporarily remove object - re-add in FreeCAD Python?
- Replies: 3
- Views: 776
Re: Temporarily remove object - re-add in FreeCAD Python?
Many thanks @wmayer: In order to remove an object tmp. from the document you must open a transaction, remove the object(s) and commit the transaction. After having saved the document just call undo. ... But you must be care between opening and undoing a transaction not to call any other function tha...
- Sat Jan 12, 2019 4:22 pm
- Forum: Python scripting and macros
- Topic: Select All, Cut, Copy and Paste in FreeCAD Python?
- Replies: 3
- Views: 1237
Re: Select All, Cut, Copy and Paste in FreeCAD Python?
Many thanks, @wmayer: The easiest would be: Gui.runCommand("Std_Copy") Gui.runCommand("Std_Cut") Gui.runCommand("Std_Paste") .... that is what I was looking for! :) EDIT: Note that in either of these cases, the calls to Copy/Cut/Paste are asynchronous, that is, calls li...
- Sat Jan 12, 2019 3:39 pm
- Forum: Python scripting and macros
- Topic: Select All, Cut, Copy and Paste in FreeCAD Python?
- Replies: 3
- Views: 1237
Re: Select All, Cut, Copy and Paste in FreeCAD Python?
I really hope there is something better than the approach I'll list below - if there is, I'd love to hear about it. I just realized, it is possible to do copy/paste in FreeCAD Python, - by emulating keypresses with PySide (see also https://www.freecadweb.org/wiki/PySide_Advanced_Examples ) - here so...
- Sat Jan 12, 2019 2:25 pm
- Forum: Python scripting and macros
- Topic: Select All, Cut, Copy and Paste in FreeCAD Python?
- Replies: 3
- Views: 1237
Select All, Cut, Copy and Paste in FreeCAD Python?
OS: Ubuntu 18.04.1 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.15379 (Git) Build type: Release Branch: master Hash: 3290c36d28551875f02333c2e01af80e38b8ad02 Python version: 2.7.15rc1 Qt version: 4.8.7 Coin version: 4.0.0a OCC version: 7.3.0 Locale: English/UnitedStates (e...
- Sat Jan 12, 2019 12:38 pm
- Forum: Python scripting and macros
- Topic: Temporarily remove object - re-add in FreeCAD Python?
- Replies: 3
- Views: 776
Temporarily remove object - re-add in FreeCAD Python?
OS: Ubuntu 18.04.1 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.15379 (Git) Build type: Release Branch: master Hash: 3290c36d28551875f02333c2e01af80e38b8ad02 Python version: 2.7.15rc1 Qt version: 4.8.7 Coin version: 4.0.0a OCC version: 7.3.0 Locale: English/UnitedStates (e...