Addon Manager Redesign 2021

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager Redesign 2021

Post by TheMarkster »

That seems to have fixed the issue of the messages getting hidden behind the main window.
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addon Manager Redesign 2021

Post by kisolre »

Why is AdonManager on top of all windows (even other apps) instead of just FreeCAD?
.
AddonManagerAlwaysOnTop.JPG
AddonManagerAlwaysOnTop.JPG (125.22 KiB) Viewed 2368 times
.

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.28090 (Git)
Build type: Release
Branch: master
Hash: 56eab3f08b307eb247989bf96c77e0648a88b1d4
Python 3.8.8, Qt 5.15.2, Coin 4.0.1, OCC 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3DfindIT 1.2.0
  * A2plus 0.4.54b
  * AirPlaneDesign 0.4.0
  * ArchTextures
  * Assembly4 0.11.10
  * Autoload
  * BIM 2021.12.0
  * BOLTSFC
  * CfdOF 1.11.6
  * CubeMenu
  * CurvedShapes 1.0.1
  * Curves 0.3.0
  * CycloidGearBox
  * Defeaturing
  * Design456
  * DesignSPHysics 0.6.1-2201-31-01
  * dodo
  * DynamicData 2.40.0
  * ExplodedAssembly
  * ExtMan
  * fasteners 0.3.38
  * FCGear 1.0.0
  * FCPDWorkbench 0.2.0
  * FEM_FrontISTR
  * frame
  * freecad.xray
  * FreeCAD_ExtMan
  * FreeCAD_mcm_addon
  * InvGears 0.1.2
  * kicadStepUpMod 10.10.7
  * Launcher
  * Manipulator
  * Mechatronic
  * MeshRemodel 1.8919.0
  * MnesarcoUtils
  * Nikra-DAP
  * nurbs
  * OpticsWorkbench 1.0.8
  * ose-piping
  * parts_library
  * PlacementTools
  * Plot
  * Pyramids-and-Polyhedrons
  * Reinforcement
  * Render 2022.1.0
  * Rocket 2.2.2
  * SearchBar 1.0.1
  * SelectorToolbar
  * sheetmetal 0.2.49
  * Ship
  * Silk
  * SlopedPlanesMacro
  * StemfieWB
  * symbols_library
  * ThreadProfile 1.81.0
  * toSketch
  * workfeature
User avatar
chennes
Veteran
Posts: 3911
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Because as usual attempting to fix one bug led to another :? -- should be fixed by git commit cb7912db8c2b98d57a7691014d37301fef3b5298.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Addon Manager Redesign 2021

Post by Kunda1 »

chennes wrote: Tue Mar 15, 2022 12:36 am Because as usual attempting to fix one bug led to another
I do this all the time! :D
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
mario52
Veteran
Posts: 4693
Joined: Wed May 16, 2012 2:13 pm

Re: Addon Manager Redesign 2021

Post by mario52 »

Hi
chennes wrote: Thu Jan 06, 2022 2:27 pm
mario52 wrote: Thu Jan 06, 2022 10:32 am why not see the macro wiki page (as the workbench addon display the Github page) ?
This is in process right now, I should have it in the next few days. I need to change how we show web pages.
many thanks,

is it normal that some macros give the forum page instead of the wiki page as FCInfo ?

and certain blank page as FCInfoGlass

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
chennes
Veteran
Posts: 3911
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

mario52 wrote: Thu Mar 24, 2022 4:48 pm is it normal that some macros give the forum page instead of the wiki page as FCInfo ?
Yes, it all depends on the URL provided within the macro: different authors choose different sites.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: Addon Manager Redesign 2021

Post by adrianinsaval »

Does that mean any arbitrary url is accepted? I feel like it would be best to limit to certain domains like freecad.org, freecadweb.org and github/gitlab
User avatar
chennes
Veteran
Posts: 3911
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Yes, arbitrary URLs are accepted. A discussion of limiting that should probably take place in its own topic so it doesn't get lost in here.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
mario52
Veteran
Posts: 4693
Joined: Wed May 16, 2012 2:13 pm

Re: Addon Manager Redesign 2021

Post by mario52 »

Hi
chennes wrote: Thu Mar 24, 2022 5:16 pm Yes, it all depends on the URL provided within the macro: different authors choose different sites.
FCInfo have this header :

Code: Select all

#
__Title__    = "FCInfo"
__Author__   = "Mario52"
__Url__      = "https://gist.github.com/mario52a/8d40ab6c018c2bde678f"
__Version__  = "1.26b"
__Date__     = "2022/02/22"    #YYY/MM/DD


__Comment__  = "gives different information about the selected object with the possibility of saving information"
__Web__      = "http://forum.freecadweb.org/viewtopic.php?f=10&t=3185"+"https://forum.freecadweb.org/viewtopic.php?f=3&t=6005"
__Wiki__     = "https://www.freecadweb.org/wiki/Macro_FCInfo"
__Gist__     = "https://gist.github.com/mario52a/6afc64081c4eb8be3b93"
__IconL__    = ""
__IconW__    = ""
__Help__     = "Start the macro select an object and read the info displayed"
__Status__   = "stable"
__Requires__ = "freecad 0.18 and more"
__Communication__ = "http://forum.freecadweb.org/viewtopic.php?f=10&t=3185"
#

how do you make your choice ?

here in ordre the web link in header (choice displayed in AddonManager in big character) :

__Url__ = "https://gist.github.com/mario52a/8d40ab6c018c2bde678f"
__Web__ = "http://forum.freecadweb.org/viewtopic.php?f=10&t=3185"
+"https://forum.freecadweb.org/viewtopic.php?f=3&t=6005"
__Wiki__ = "https://www.freecadweb.org/wiki/Macro_FCInfo"
__Gist__ = "https://gist.github.com/mario52a/6afc64081c4eb8be3b93"
__Communication__ = "http://forum.freecadweb.org/viewtopic.php?f=10&t=3185"


normally the __Wiki__ must be the choice to display on AddonManager

___________________________________________

here the header FCInfo_Glass (give blank page)

Code: Select all

#
__title__         = "FCInfoGlass"
__author__        = "Mario52"
__url__           = "http://www.freecadweb.org/index-fr.html"
__version__       = "00.04"
__date__          = "25/11/2015" 

__Comment__       = "displays various informations on the 3DView"
__Web__           = ""
__Wiki__          = "http://www.freecadweb.org/wiki/index.php?title=Macro_FCInfoGlass"
__Icon__          = "/usr/lib/freecad/Mod/plugins/icons/.png"
__IconW__         = "C:/Users/Mario/AppData/Roaming/FreeCAD/"    # with : path = FreeCAD.ConfigGet("UserAppData")
__Help__          = ""
__Status__        = "finished"
__Requires__      = "FreeCAD 0.14.3706"
__Communication__ = "http://www.freecadweb.org/wiki/index.php?title=User:Mario52"

is there anything that needs to be changed in the macro header or the wiki ?

the "{{Codeextralink" is used ?

here little Ketchup checkup

3DXMLimport (blank)
Airfoil import e scale (forum)
CenterOfMass (forum)
Clone Explicit (FreeCAD page)
CloneConvert (FreeCAD page)
DesignSPHysics (https://github.com/DualSPHysics/DesignS ... /README.md)
Dxf To Shape (blank)
FCCamera (Gist page)
FCCircularText (Forum "Extrude from curved surface of cylinder")
FCCreaLoft (forum page)
FCInfo (forum page)
FCInfoGlass (blank)
Guitar nut (blank)
PartToVRML (forum page)
Spreedsheet2html (blank)


OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.28193 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: C/Default (C)


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
chennes
Veteran
Posts: 3911
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

mario52 wrote: Fri Mar 25, 2022 6:26 pm how do you make your choice ?
Right now I just use whatever's set for "web", though I see that some macros don't set that. In those cases I could fallback to the wiki, if that's provided. Or as you suggest, reverse that logic and prefer wiki if it's set, and fall back to web if it's not. I don't feel strongly either way.

The example you show above, with the "+" sign in the web data, is not valid. Those strings must all be plain string literals, the Addon Manager does not actually execute the Python code, it's using a regex to pull whatever's after the equals sign and between quotes.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply