New Macro " Sketch Constraint From Spreadsheet"

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by Syres »

@2cv001 I'll have to bow to others' knowledge but I thought the DNS record basically redirected any traffic targeted at freecadweb.org over to freecad.org therefore it didn't actually matter which was used, maybe there's something hard coded somewhere in the web server???
galou_breizh
Posts: 436
Joined: Wed Sep 15, 2010 9:38 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by galou_breizh »

@2cv001 Don't you want to you post your macro to the official macro repository?
User avatar
2cv001
Posts: 484
Joined: Wed Jan 01, 2020 9:30 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by 2cv001 »

Yes, I would like, but I don't know how to manage GitHub... I would like to learn...
Macro Sketch Constraint From Spreadsheet :
https://wiki.freecad.org/Macro_Sketch_C ... adsheet/fr
User avatar
2cv001
Posts: 484
Joined: Wed Jan 01, 2020 9:30 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by 2cv001 »

@galou_breizh
Hello

Is this what you recommend?

https://github.com/2cv001/freecad/blob/ ... et.FCMacro


I change the page https://wiki.freecad.org/Macro_Sketch_C ... preadsheet
I added right after the description :

Code: Select all

</translate>
{{Codeextralink|https://raw.githubusercontent.com/2cv001/freecad/main/sketchConstraintFromSpreadsheet.FCMacro}}
<translate>
I hope it's correct...
I tried an installation via the addon manager and it’s still the old code. I guess I have to wait?” .

Edit : it's ok now.
Macro Sketch Constraint From Spreadsheet :
https://wiki.freecad.org/Macro_Sketch_C ... adsheet/fr
galou_breizh
Posts: 436
Joined: Wed Sep 15, 2010 9:38 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by galou_breizh »

2cv001 wrote: Sat Jan 06, 2024 5:00 pm Is this what you recommend?

https://github.com/2cv001/freecad/blob/ ... et.FCMacro
Not really, I meant the official macro repository cited previously. The Addon Manager takes macro either from the official repository (preferred) or from the Wiki if it can extract it from the Wiki. For the code to be retrieved from the Wiki, I guess that the code has to be included directly but I'm not sure exactly what conditions must be respected.

It's up to you whether you keep your macro in your own repository where you have full control or if you propose it to the official repo where other people may modify it.

Congratulations for the very nice Wiki page for your macro.
User avatar
2cv001
Posts: 484
Joined: Wed Jan 01, 2020 9:30 am

Re: New Macro " Sketch Constraint From Spreadsheet"

Post by 2cv001 »

galou_breizh wrote: Tue Jan 16, 2024 5:54 am
2cv001 wrote: Sat Jan 06, 2024 5:00 pm Is this what you recommend?

https://github.com/2cv001/freecad/blob/ ... et.FCMacro
Not really, I meant the official macro repository cited previously. The Addon Manager takes macro either from the official repository (preferred) or from the Wiki if it can extract it from the Wiki. For the code to be retrieved from the Wiki, I guess that the code has to be included directly but I'm not sure exactly what conditions must be respected.

It's up to you whether you keep your macro in your own repository where you have full control or if you propose it to the official repo where other people may modify it.

Congratulations for the very nice Wiki page for your macro.


I changed my github :
I tried to do what is written in the FreeCAD wiki :


Code: Select all

    The best way to submit a macro is to post it to the FreeCAD Python Scripting and Macros subforum for review. After a green light is given then:

    Fork this repository

    Clone your fork locally git clone https://github.com/your-gh-username/FreeCAD-macros

    Go to the newly-created local repository cd FreeCAD-macros

    Setup the upstream git remote add upstream https://github.com/FreeCAD/FreeCAD-macros

    Create a branch to work in git checkout -b your_branch

    Follow our guidelines below on how to add a macro

    When you're ready to push your changes: git push -u origin your_branch

    Create a PR (pull request) against upstream

But I did not push the change. I actually make a lot of change and it is better if I have the full contrôle Actually, link to code is a direct link to my github. In few weeks, I should push the change.


My Github page :

https://github.com/2cv001/FreeCAD-macro ... et.FCMacro
Macro Sketch Constraint From Spreadsheet :
https://wiki.freecad.org/Macro_Sketch_C ... adsheet/fr
Post Reply