BIM Addon version number?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
BIM Addon version number?
Since the BIM Addon can be updated independently, does it have its own version number?
Last edited by Kunda1 on Fri Aug 16, 2019 1:01 am, edited 1 time in total.
Reason: changed title for more clarity: s/nr/number/
Reason: changed title for more clarity: s/nr/number/
Re: BIM Addon version nr?
@Yorik hasn't given it an version yet, AFAIK
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
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
Re: BIM Addon version nr?
I guess the version number is just the commit hash taken from the addon's own repository.
All addons are hosted in a separate repository FreeCAD-addons, which just pulls one commit (the latest?) from the individual repositories, in this case yorikvanhavre/BIM_Workbench. Since Yorik only has a single master, and no releases or tags, I guess it could be thought of as a rolling release.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: BIM Addon version nr?
Thanks for your answers.
I can find the latest commit hash for the version on GitHub, but how would you find this for the version you have installed?
I can find the latest commit hash for the version on GitHub, but how would you find this for the version you have installed?
Re: BIM Addon version nr?
https://github.com/FreeCAD/FreeCAD/blob ... rs.py#L527
Code: Select all
if os.path.exists(clonedir):
self.info_label.emit("Updating module...")
if git:
if not os.path.exists(clonedir + os.sep + '.git'):
# Repair addon installed with raw download
bare_repo = git.Repo.clone_from(self.repos[idx][1], clonedir + os.sep + '.git', bare=True)
try:
with bare_repo.config_writer() as cw:
cw.set('core', 'bare', False)
...
repo = git.Repo(clonedir)
repo.head.reset('--hard')
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: BIM Addon version nr?
@vocx:
That may be too hard for an average user like myself.
That may be too hard for an average user like myself.
Re: BIM Addon version nr?
It's a fair request.. I made a rudimentary PR to the BIM WB for this but @yorik thinks it should be implemented in a way that is gives the enduser more options (which makes more sense). See https://github.com/yorikvanhavre/BIM_Workbench/pull/30 basically lifted from the A2+ WB which shows the version number in the WB dropdown menu.
But @vocx makes a better point that we could use git to actually tell us the commit hash we have installed which could also be useful.
But @vocx makes a better point that we could use git to actually tell us the commit hash we have installed which could also be useful.
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
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
Re: BIM Addon version nr?
See this thread check workbench update with AddonManager
It seems at the moment each addon developer could implement a function to check the version of their own addon. But if the proper functions are moved to the Addon Manager, then this could work for all addons. It's probably only a matter of time until it's implemented. Just remind Yorik about it.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.