how to query version number of own GH addon & installed GHpython? - Grasshopper2024-03-29T08:59:21Zhttps://www.grasshopper3d.com/forum/topics/how-to-query-version-number-of-own-gh-addon-installed-ghpython?commentId=2985220%3AComment%3A1798909&feed=yes&xn_auth=notnx David, that works. I have…tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17993662017-08-16T14:05:15.352ZWP Leehttps://www.grasshopper3d.com/profile/WeiPienLee
<p>tnx David, that works. I have a generic function now that gets the assembly version by means of its guid id.</p>
<p>tnx David, that works. I have a generic function now that gets the assembly version by means of its guid id.</p> Hehe, that's what the Germans…tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17993312017-08-16T08:32:02.809ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Hehe, that's what the Germans say as well ;) <br/><br/>Yeah in that case you're definitely looking at a solution like David is proposing.</p>
<p>Hehe, that's what the Germans say as well ;) <br/><br/>Yeah in that case you're definitely looking at a solution like David is proposing.</p> Tnx Anders (confusion first n…tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17994142017-08-16T08:12:16.429ZWP Leehttps://www.grasshopper3d.com/profile/WeiPienLee
<p>Tnx Anders (confusion first name for a Dutch man;)) for your response, I want to access this info however from a custom component. Furthermore, I want to do that even when in the same document where this custom component has been put no python script component exist.</p>
<p></p>
<p>So I think query the installed add-ons via grasshopper as David suggests should be the way I think.</p>
<p>Tnx Anders (confusion first name for a Dutch man;)) for your response, I want to access this info however from a custom component. Furthermore, I want to do that even when in the same document where this custom component has been put no python script component exist.</p>
<p></p>
<p>So I think query the installed add-ons via grasshopper as David suggests should be the way I think.</p> You can also get the GHPython…tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17993272017-08-16T07:34:04.525ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>You can also get the GHPython version like so:<br/><br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769316798?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769316798?profile=original" width="647" class="align-full"/></a></p>
<p>You can also get the GHPython version like so:<br/><br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769316798?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769316798?profile=original" width="647" class="align-full"/></a></p> All the information that Gras…tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17991062017-08-16T07:23:54.175ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>All the information that Grasshopper has about loaded plugin is available via the <em>Grasshopper.Instances.ComponentServer</em> class. You can use methods like <em>FindAssembly[ByObject]()</em> or the <em>Libraries</em> property to enumerate over all of them. Yes, the naming is terribly inconsistent.</p>
<p></p>
<p>These methods all return <em>GH_AssemblyInfo</em> objects, which give you the name, version and location of the relevant assembly. You can get this information about all loaded…</p>
<p>All the information that Grasshopper has about loaded plugin is available via the <em>Grasshopper.Instances.ComponentServer</em> class. You can use methods like <em>FindAssembly[ByObject]()</em> or the <em>Libraries</em> property to enumerate over all of them. Yes, the naming is terribly inconsistent.</p>
<p></p>
<p>These methods all return <em>GH_AssemblyInfo</em> objects, which give you the name, version and location of the relevant assembly. You can get this information about all loaded plugins, including your own and GhPython.</p>
<p></p>
<p>To build a list of all GHAs used in a particular document, you'll have to loop over all <em>IGH_DocumentObjects</em> and find the associated <em>GH_AssemblyInfo</em> objects. Grasshopper does this internally when saving gh files, but I did not make that logic public.</p>
<p></p>
<p>I have no idea how GIT fits into this, may be a question for Will Pearson over on discourse.mcneel.com. He's our resident versioning/github expert.</p> I found this lead regarding l…tag:www.grasshopper3d.com,2017-08-15:2985220:Comment:17989092017-08-15T23:52:07.922ZWP Leehttps://www.grasshopper3d.com/profile/WeiPienLee
I found this lead regarding list of adding and have a look at that<br />
<br />
<a href="http://www.grasshopper3d.com/forum/topics/pulling-grasshopper-metadata-document-properties" target="_blank">http://www.grasshopper3d.com/forum/topics/pulling-grasshopper-metadata-document-properties</a>
I found this lead regarding list of adding and have a look at that<br />
<br />
<a href="http://www.grasshopper3d.com/forum/topics/pulling-grasshopper-metadata-document-properties" target="_blank">http://www.grasshopper3d.com/forum/topics/pulling-grasshopper-metadata-document-properties</a>