Skip to content

Commit

Permalink
Updated with SDK 3.1.1-beta. (#18)
Browse files Browse the repository at this point in the history
Sample CompositeCurve is also added.
  • Loading branch information
lotaked authored Oct 20, 2023
1 parent 7afb569 commit d056a19
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 32 deletions.
60 changes: 30 additions & 30 deletions src/ConsoleConnector/ConsoleConnector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,53 +57,53 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Autodesk.DataExchange, Version=3.1.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.dll</HintPath>
<Reference Include="Autodesk.DataExchange, Version=3.1.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Authentication, Version=3.1.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Authentication.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Authentication, Version=3.1.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Authentication.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.ContractProvider, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.ContractProvider.dll</HintPath>
<Reference Include="Autodesk.DataExchange.ContractProvider, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.ContractProvider.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Core, Version=3.1.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Core.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Core, Version=3.1.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Core.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Exceptions, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Exceptions.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Exceptions, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Exceptions.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Extensions.HostingProvider, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Extensions.HostingProvider.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Extensions.HostingProvider, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Extensions.HostingProvider.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Extensions.Logging.File, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Extensions.Logging.File.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Extensions.Logging.File, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Extensions.Logging.File.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Extensions.Storage.File, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Extensions.Storage.File.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Extensions.Storage.File, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Extensions.Storage.File.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Metrics, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Metrics.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Metrics, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Metrics.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.OpenAPI, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.OpenAPI.dll</HintPath>
<Reference Include="Autodesk.DataExchange.OpenAPI, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.OpenAPI.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Resiliency, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Resiliency.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Resiliency, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Resiliency.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.Schemas, Version=3.1.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.Schemas.dll</HintPath>
<Reference Include="Autodesk.DataExchange.Schemas, Version=3.1.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.Schemas.dll</HintPath>
</Reference>
<Reference Include="Autodesk.DataExchange.SourceProvider, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.0-beta\lib\net48\Autodesk.DataExchange.SourceProvider.dll</HintPath>
<Reference Include="Autodesk.DataExchange.SourceProvider, Version=3.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.DataExchange.3.1.1-beta\lib\net48\Autodesk.DataExchange.SourceProvider.dll</HintPath>
</Reference>
<Reference Include="Autodesk.Extensions.Http.ForgeRetry, Version=8.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.Extensions.Http.ForgeRetry.8.0.0\lib\netstandard2.0\Autodesk.Extensions.Http.ForgeRetry.dll</HintPath>
</Reference>
<Reference Include="Autodesk.Forge, Version=1.9.8.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Autodesk.Forge.1.9.8\lib\net48\Autodesk.Forge.dll</HintPath>
</Reference>
<Reference Include="Autodesk.GeometryPrimitives, Version=0.5.4.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\geometry-primitives-sdk-win-release-x64.0.5.4\lib\netstandard2.0\Autodesk.GeometryPrimitives.dll</HintPath>
<Reference Include="Autodesk.GeometryPrimitives, Version=0.5.7.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\geometry-primitives-sdk-win-release-x64.0.5.7\lib\netstandard2.0\Autodesk.GeometryPrimitives.dll</HintPath>
</Reference>
<Reference Include="ForgeParametersCLR, Version=1.0.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\..\packages\ForgeParameters-csharp_win_release_intel64_v142.1.0.1\lib\net48\ForgeParametersCLR.dll</HintPath>
Expand Down Expand Up @@ -358,9 +358,9 @@
<Error Condition="!Exists('..\..\packages\ForgeUnits-csharp_win_release_intel64_v142.4.0.3\build\ForgeUnits-csharp_win_release_intel64_v142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\ForgeUnits-csharp_win_release_intel64_v142.4.0.3\build\ForgeUnits-csharp_win_release_intel64_v142.targets'))" />
<Error Condition="!Exists('..\..\packages\ForgeParameters-csharp_win_release_intel64_v142.1.0.1\build\ForgeParameters-csharp_win_release_intel64_v142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\ForgeParameters-csharp_win_release_intel64_v142.1.0.1\build\ForgeParameters-csharp_win_release_intel64_v142.targets'))" />
<Error Condition="!Exists('..\..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets'))" />
<Error Condition="!Exists('..\..\packages\Autodesk.DataExchange.3.1.0-beta\build\Autodesk.DataExchange.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Autodesk.DataExchange.3.1.0-beta\build\Autodesk.DataExchange.targets'))" />
<Error Condition="!Exists('..\..\packages\Autodesk.DataExchange.3.1.1-beta\build\Autodesk.DataExchange.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Autodesk.DataExchange.3.1.1-beta\build\Autodesk.DataExchange.targets'))" />
</Target>
<Import Project="..\..\packages\ForgeParameters-csharp_win_release_intel64_v142.1.0.1\build\ForgeParameters-csharp_win_release_intel64_v142.targets" Condition="Exists('..\..\packages\ForgeParameters-csharp_win_release_intel64_v142.1.0.1\build\ForgeParameters-csharp_win_release_intel64_v142.targets')" />
<Import Project="..\..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('..\..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets')" />
<Import Project="..\..\packages\Autodesk.DataExchange.3.1.0-beta\build\Autodesk.DataExchange.targets" Condition="Exists('..\..\packages\Autodesk.DataExchange.3.1.0-beta\build\Autodesk.DataExchange.targets')" />
<Import Project="..\..\packages\Autodesk.DataExchange.3.1.1-beta\build\Autodesk.DataExchange.targets" Condition="Exists('..\..\packages\Autodesk.DataExchange.3.1.1-beta\build\Autodesk.DataExchange.targets')" />
</Project>
29 changes: 29 additions & 0 deletions src/ConsoleConnector/Helper/GeometryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,35 @@ public Element AddPrimitive(ElementDataModel elementDataModel)
Normal = new PrimitiveGeometry.Math.Vector3d(0, 0, 1),
MajorRadius = new PrimitiveGeometry.Math.Vector3d(500, 0, 0),
RadiusRatio = 0.7
},
new CompositeCurve()
{
Curves = new CurveArray()
{
new Line()
{
Position = PrimitiveGeometry.Math.Point3d.Origin,
Direction = PrimitiveGeometry.Math.Vector3d.XAxis,
Range = new ParamRange(ParamRange.RangeType.Finite, 0, 12.5)
},
new Line()
{
Position = new PrimitiveGeometry.Math.Point3d(12.5, 0, 0),
Direction = PrimitiveGeometry.Math.Vector3d.YAxis,
Range = new ParamRange(ParamRange.RangeType.Finite, 0, 4)
},
new Polyline()
{
Range = new ParamRange(ParamRange.RangeType.Finite, 0.0, 2.0),
Closed = false,
Points = new List<PrimitiveGeometry.Math.Point3d>()
{
new PrimitiveGeometry.Math.Point3d(12.5, 4, 0),
new PrimitiveGeometry.Math.Point3d(4.5, 4, 0),
new PrimitiveGeometry.Math.Point3d(11.25, 0, 0)
}
}
}
}

},
Expand Down
4 changes: 2 additions & 2 deletions src/ConsoleConnector/packages.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Autodesk.DataExchange" version="3.1.0-beta" targetFramework="net48" />
<package id="Autodesk.DataExchange" version="3.1.1-beta" targetFramework="net48" />
<package id="Autodesk.Extensions.Http.ForgeRetry" version="8.0.0" targetFramework="net48" />
<package id="Autodesk.Forge" version="1.9.8" targetFramework="net48" />
<package id="ForgeParameters-csharp_win_release_intel64_v142" version="1.0.1" targetFramework="net48" />
<package id="ForgeUnits-csharp_win_release_intel64_v142" version="4.0.3" targetFramework="net48" />
<package id="geometry-primitives-sdk-win-release-x64" version="0.5.4" targetFramework="net48" />
<package id="geometry-primitives-sdk-win-release-x64" version="0.5.7" targetFramework="net48" />
<package id="Google.Protobuf" version="3.19.4" targetFramework="net48" />
<package id="IdentityModel" version="5.0.1" targetFramework="net48" />
<package id="JsonSubTypes" version="1.8.0" targetFramework="net48" />
Expand Down

0 comments on commit d056a19

Please sign in to comment.