-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patching list-2-tree automatic convertion (#46)
* WIP: working mix nested list bug and deep nested lists * CAP-WIP: solved problem for listing to tree output
- Loading branch information
Showing
22 changed files
with
533 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net48</TargetFrameworks> | ||
<Version>1.0</Version> | ||
<Title>CsGH</Title> | ||
<Description>Description of CsGH</Description> | ||
<TargetExt>.gha</TargetExt> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Grasshopper" Version="8.0.23164.14305-wip" IncludeAssets="compile;build" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,64 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Grasshopper; | ||
using Grasshopper.Kernel; | ||
using Rhino.Geometry; | ||
|
||
namespace CsGH | ||
{ | ||
public class CsGHComponent : GH_Component | ||
{ | ||
/// <summary> | ||
/// Each implementation of GH_Component must provide a public | ||
/// constructor without any arguments. | ||
/// Category represents the Tab in which the component will appear, | ||
/// Subcategory the panel. If you use non-existing tab or panel names, | ||
/// new tabs/panels will automatically be created. | ||
/// </summary> | ||
public CsGHComponent() | ||
: base("CsGH Component", "Nickname", | ||
"Description of component", | ||
"Category", "Subcategory") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Registers all the input parameters for this component. | ||
/// </summary> | ||
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Registers all the output parameters for this component. | ||
/// </summary> | ||
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// This is the method that actually does the work. | ||
/// </summary> | ||
/// <param name="DA">The DA object can be used to retrieve data from input parameters and | ||
/// to store data in output parameters.</param> | ||
protected override void SolveInstance(IGH_DataAccess DA) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Provides an Icon for every component that will be visible in the User Interface. | ||
/// Icons need to be 24x24 pixels. | ||
/// You can add image files to your project resources and access them like this: | ||
/// return Resources.IconForThisComponent; | ||
/// </summary> | ||
protected override System.Drawing.Bitmap Icon => null; | ||
|
||
/// <summary> | ||
/// Each component must have a unique Guid to identify it. | ||
/// It is vital this Guid doesn't change otherwise old ghx files | ||
/// that use the old ID will partially fail during loading. | ||
/// </summary> | ||
public override Guid ComponentGuid => new Guid("57815B6C-58D2-42BE-84D7-6EA495D6A5B1"); | ||
} | ||
} |
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,26 @@ | ||
using System; | ||
using System.Drawing; | ||
using Grasshopper; | ||
using Grasshopper.Kernel; | ||
|
||
namespace CsGH | ||
{ | ||
public class CsGHInfo : GH_AssemblyInfo | ||
{ | ||
public override string Name => "CsGH Info"; | ||
|
||
//Return a 24x24 pixel bitmap to represent this GHA library. | ||
public override Bitmap Icon => null; | ||
|
||
//Return a short string describing the purpose of this GHA library. | ||
public override string Description => ""; | ||
|
||
public override Guid Id => new Guid("8FDABF86-6067-4496-977B-E17C6341F89E"); | ||
|
||
//Return a string identifying you or your company. | ||
public override string AuthorName => ""; | ||
|
||
//Return a string representing your preferred contact details. | ||
public override string AuthorContact => ""; | ||
} | ||
} |
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,9 @@ | ||
{ | ||
"profiles": { | ||
"CsGH": { | ||
"commandName": "Executable", | ||
"executablePath": "C:\\Program Files\\Rhino 7\\System\\Rhino.exe", | ||
"commandLineArgs": "" | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
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,59 @@ | ||
{ | ||
"format": 1, | ||
"restore": { | ||
"F:\\script-sync\\GH\\CsGH\\CsGH.csproj": {} | ||
}, | ||
"projects": { | ||
"F:\\script-sync\\GH\\CsGH\\CsGH.csproj": { | ||
"version": "1.0.0", | ||
"restore": { | ||
"projectUniqueName": "F:\\script-sync\\GH\\CsGH\\CsGH.csproj", | ||
"projectName": "CsGH", | ||
"projectPath": "F:\\script-sync\\GH\\CsGH\\CsGH.csproj", | ||
"packagesPath": "C:\\Users\\andre\\.nuget\\packages\\", | ||
"outputPath": "F:\\script-sync\\GH\\CsGH\\obj\\", | ||
"projectStyle": "PackageReference", | ||
"crossTargeting": true, | ||
"fallbackFolders": [ | ||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" | ||
], | ||
"configFilePaths": [ | ||
"C:\\Users\\andre\\AppData\\Roaming\\NuGet\\NuGet.Config", | ||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | ||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | ||
], | ||
"originalTargetFrameworks": [ | ||
"net48" | ||
], | ||
"sources": { | ||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | ||
"https://api.nuget.org/v3/index.json": {} | ||
}, | ||
"frameworks": { | ||
"net48": { | ||
"targetAlias": "net48", | ||
"projectReferences": {} | ||
} | ||
}, | ||
"warningProperties": { | ||
"warnAsError": [ | ||
"NU1605" | ||
] | ||
} | ||
}, | ||
"frameworks": { | ||
"net48": { | ||
"targetAlias": "net48", | ||
"dependencies": { | ||
"Grasshopper": { | ||
"include": "Compile, Build", | ||
"target": "Package", | ||
"version": "[8.0.23164.14305-wip, )" | ||
} | ||
}, | ||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.408\\RuntimeIdentifierGraph.json" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | ||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> | ||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> | ||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> | ||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> | ||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\andre\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders> | ||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> | ||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.1</NuGetToolVersion> | ||
</PropertyGroup> | ||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | ||
<SourceRoot Include="C:\Users\andre\.nuget\packages\" /> | ||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
</PropertyGroup> | ||
</Project> |
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
</PropertyGroup> | ||
<ImportGroup Condition=" '$(TargetFramework)' == 'net48' AND '$(ExcludeRestorePackageImports)' != 'true' "> | ||
<Import Project="$(NuGetPackageRoot)rhinocommon\8.0.23164.14305-wip\build\net48\RhinoCommon.targets" Condition="Exists('$(NuGetPackageRoot)rhinocommon\8.0.23164.14305-wip\build\net48\RhinoCommon.targets')" /> | ||
<Import Project="$(NuGetPackageRoot)grasshopper\8.0.23164.14305-wip\build\net48\Grasshopper.targets" Condition="Exists('$(NuGetPackageRoot)grasshopper\8.0.23164.14305-wip\build\net48\Grasshopper.targets')" /> | ||
</ImportGroup> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
GH/CsGH/obj/Debug/net48/.NETFramework,Version=v4.8.AssemblyAttributes.cs
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,4 @@ | ||
// <autogenerated /> | ||
using System; | ||
using System.Reflection; | ||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] |
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,23 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
[assembly: System.Reflection.AssemblyCompanyAttribute("CsGH")] | ||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | ||
[assembly: System.Reflection.AssemblyDescriptionAttribute("Description of CsGH")] | ||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | ||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0")] | ||
[assembly: System.Reflection.AssemblyProductAttribute("CsGH")] | ||
[assembly: System.Reflection.AssemblyTitleAttribute("CsGH")] | ||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | ||
|
||
// Generated by the MSBuild WriteCodeFragment class. | ||
|
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 @@ | ||
8cbbdd594077555e06bb3b9285b5118f2966b3f2 |
3 changes: 3 additions & 0 deletions
3
GH/CsGH/obj/Debug/net48/CsGH.GeneratedMSBuildEditorConfig.editorconfig
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,3 @@ | ||
is_global = true | ||
build_property.RootNamespace = CsGH | ||
build_property.ProjectDir = F:\script-sync\GH\CsGH\ |
Binary file not shown.
Binary file not shown.
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 @@ | ||
29b94e183ca448bfcd87af0796c4391fd9685fb0 |
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,9 @@ | ||
F:\script-sync\GH\CsGH\bin\Debug\net48\CsGH.gha | ||
F:\script-sync\GH\CsGH\bin\Debug\net48\CsGH.pdb | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.csproj.AssemblyReference.cache | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.GeneratedMSBuildEditorConfig.editorconfig | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.AssemblyInfoInputs.cache | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.AssemblyInfo.cs | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.csproj.CoreCompileInputs.cache | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.gha | ||
F:\script-sync\GH\CsGH\obj\Debug\net48\CsGH.pdb |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.