MoveToOrigin macro

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: MoveToOrigin macro

Post by edwilliams16 »

I've attempted a wiki page. https://wiki.freecadweb.org/Macro_MoveToOrigin Once that is in order, I will attempt to link it into https://wiki.freecadweb.org/Macros_recipes
LHC
Posts: 321
Joined: Thu Sep 17, 2020 4:21 pm
Location: Canadian Coffee Shop

Re: MoveToOrigin macro

Post by LHC »

Just wanted to say thanks for this handy macro ! drmacro on the discord channel put me onto it as I have been working (more swearing than working) with an imported step file and shuffling things around.
Cheers,
Lewis
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: MoveToOrigin macro

Post by edwilliams16 »

Always good to hear that one's work gets used!
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: MoveToOrigin macro

Post by mario52 »

hi

now installable with AddonManager

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
M4x
Veteran
Posts: 1483
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: MoveToOrigin macro

Post by M4x »

Nice, thank you! I'm going to test this.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: MoveToOrigin macro

Post by edwilliams16 »

mario52 wrote: Wed Jun 30, 2021 9:31 am hi

now installable with AddonManager

mario
Thanks! I just had a look and got:

Code: Select all

12:45:05  Debug: addon_flags.json not found
12:45:12  Appears to be an issue connecting to the Wiki, therefore cannot retrieve Wiki macro list at this time
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: MoveToOrigin macro

Post by chrisb »

Works here.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.25131 (Git)
Build type: Release
Branch: master
Hash: 7c519689f0d5ea78fb3292be36a857d283c05507
Python version: 3.9.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: MoveToOrigin macro

Post by edwilliams16 »

Addon manager says:

Code: Select all

List of macros successfully retrieved.
with the aforementioned error messages in report view. But my MoveToOrigin isn't there...
And Addon Manager|Workbenches is empty.

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.20.24894 (Git)
Build type: Release
Branch: master
Hash: a378b6b66f8a5992fc1452567ff59bdb613abc80
Python version: 3.9.4
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: MoveToOrigin macro

Post by edwilliams16 »

Upgrading to

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.20.25157 (Git)
Build type: Release
Branch: master
Hash: 257cdd8f423f1530b8df6f53e242de629fee4e85
Python version: 3.9.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: C/Default (C)

fixed it, so who knows...
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: MoveToOrigin macro

Post by mario52 »

hi

yes very well

VeryWell00.png
VeryWell00.png (40.93 KiB) Viewed 1640 times

why not extend to non shape object

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply