forked from compas-dev/compas-actions.ghpython_components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP-CAP: changed all output guid to no_hint (out parameter is not def…
…ualt)
- Loading branch information
Showing
5 changed files
with
507 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<Archive name="Root"> | ||
<!--Grasshopper archive--> | ||
<!--Grasshopper and GH_IO.dll are copyrighted by Robert McNeel & Associates--> | ||
<!--Archive generated by GH_IO.dll file utility library {0.2.0002}--> | ||
<items count="1"> | ||
<item name="ArchiveVersion" type_name="gh_version" type_code="80"> | ||
<Major>0</Major> | ||
<Minor>2</Minor> | ||
<Revision>2</Revision> | ||
</item> | ||
</items> | ||
<chunks count="2"> | ||
<chunk name="Definition"> | ||
<items count="1"> | ||
<item name="plugin_version" type_name="gh_version" type_code="80"> | ||
<Major>1</Major> | ||
<Minor>0</Minor> | ||
<Revision>7</Revision> | ||
</item> | ||
</items> | ||
<chunks count="4"> | ||
<chunk name="DocumentHeader"> | ||
<items count="5"> | ||
<item name="DocumentID" type_name="gh_guid" type_code="9">270470a3-090e-4199-8a96-d6d60083f906</item> | ||
<item name="Preview" type_name="gh_string" type_code="10">Shaded</item> | ||
<item name="PreviewMeshType" type_name="gh_int32" type_code="3">1</item> | ||
<item name="PreviewNormal" type_name="gh_drawing_color" type_code="36"> | ||
<ARGB>100;255;0;0</ARGB> | ||
</item> | ||
<item name="PreviewSelected" type_name="gh_drawing_color" type_code="36"> | ||
<ARGB>100;0;150;0</ARGB> | ||
</item> | ||
</items> | ||
</chunk> | ||
<chunk name="DefinitionProperties"> | ||
<items count="4"> | ||
<item name="Date" type_name="gh_date" type_code="8">638412573507187527</item> | ||
<item name="Description" type_name="gh_string" type_code="10"></item> | ||
<item name="KeepOpen" type_name="gh_bool" type_code="1">false</item> | ||
<item name="Name" type_name="gh_string" type_code="10">cpythondoc.ghx</item> | ||
</items> | ||
<chunks count="3"> | ||
<chunk name="Revisions"> | ||
<items count="1"> | ||
<item name="RevisionCount" type_name="gh_int32" type_code="3">0</item> | ||
</items> | ||
</chunk> | ||
<chunk name="Projection"> | ||
<items count="2"> | ||
<item name="Target" type_name="gh_drawing_point" type_code="30"> | ||
<X>201</X> | ||
<Y>292</Y> | ||
</item> | ||
<item name="Zoom" type_name="gh_single" type_code="5">1.0837505</item> | ||
</items> | ||
</chunk> | ||
<chunk name="Views"> | ||
<items count="1"> | ||
<item name="ViewCount" type_name="gh_int32" type_code="3">0</item> | ||
</items> | ||
</chunk> | ||
</chunks> | ||
</chunk> | ||
<chunk name="RcpLayout"> | ||
<items count="1"> | ||
<item name="GroupCount" type_name="gh_int32" type_code="3">0</item> | ||
</items> | ||
</chunk> | ||
<chunk name="DefinitionObjects"> | ||
<items count="1"> | ||
<item name="ObjectCount" type_name="gh_int32" type_code="3">0</item> | ||
</items> | ||
</chunk> | ||
</chunks> | ||
</chunk> | ||
<chunk name="Thumbnail"> | ||
<items count="1"> | ||
<item name="Thumbnail" type_name="gh_drawing_bitmap" type_code="37"> | ||
<bitmap length="514">iVBORw0KGgoAAAANSUhEUgAAAOEAAACWCAIAAACn9nhUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAGXSURBVHhe7dJBDQAhEACx9W8TIceHhJyDIWk1dOABH1Tdowt6HKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXOUeocpc5R6hylzlHqHKXudxSazlHomtmpFvoOOsRmzAAAAABJRU5ErkJggg==</bitmap> | ||
</item> | ||
</items> | ||
</chunk> | ||
</chunks> | ||
</Archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,5 @@ def main(): | |
gh_io = gh_io[:-4] | ||
clr.AddReference(gh_io) | ||
|
||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import argparse | ||
import base64 | ||
import json | ||
import os | ||
import re | ||
import sys | ||
import tempfile | ||
import urllib.request, urllib.parse, urllib.error | ||
import zipfile | ||
from io import StringIO | ||
|
||
import clr | ||
import System | ||
import System.IO | ||
|
||
|
||
|
||
|
||
def main(): | ||
from GH_IO.Serialization import GH_LooseChunk | ||
|
||
# get all the types and corresponding guids | ||
# rewrite this: 08908df5-fa14-4982-9ab2-1aa0927566aa in majuscule | ||
# i ncomment the line below | ||
print(GH_LooseChunk.GetKnownTypes()) | ||
|
||
|
||
|
||
if "__main__" == __name__: | ||
|
||
gh_io : str = r"C:\Users\andre\.nuget\packages\grasshopper\8.0.23164.14305-wip\lib\net48\GH_IO.dll" | ||
gh_io = os.path.abspath(gh_io) | ||
gh_io = gh_io[:-4] | ||
clr.AddReference(gh_io) | ||
|
||
|
||
main() |
Oops, something went wrong.