-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds autocad2024 converter for the civil3d 2024 connector
- Loading branch information
1 parent
3914a22
commit f3d823c
Showing
11 changed files
with
935 additions
and
4 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
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
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
19 changes: 19 additions & 0 deletions
19
...ters/Autocad/Speckle.Converters.Autocad2024.DependencyInjection/AutocadConverterModule.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,19 @@ | ||
using Autodesk.AutoCAD.ApplicationServices; | ||
using Autodesk.AutoCAD.DatabaseServices; | ||
using Speckle.Autofac.DependencyInjection; | ||
using Speckle.Converters.Autocad; | ||
using Speckle.Converters.Common; | ||
using Speckle.Converters.Common.DependencyInjection; | ||
|
||
namespace Speckle.Converters.Autocad20243.DependencyInjection; | ||
|
||
public class AutocadConverterModule : ISpeckleModule | ||
{ | ||
public void Load(SpeckleContainerBuilder builder) | ||
{ | ||
builder.AddConverterCommon<AutocadRootToHostConverter, AutocadToSpeckleUnitConverter, UnitsValue>(); | ||
|
||
// single stack per conversion | ||
builder.AddScoped<IConversionContextStack<Document, UnitsValue>, AutocadConversionContextStack>(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...Autocad2024.DependencyInjection/Speckle.Converters.Autocad2024.DependencyInjection.csproj
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,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net48</TargetFramework> | ||
<PlatformTarget>x64</PlatformTarget> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\Sdk\Speckle.Converters.Common.DependencyInjection\Speckle.Converters.Common.DependencyInjection.csproj" /> | ||
<ProjectReference Include="..\Speckle.Converters.Autocad2024\Speckle.Converters.Autocad2024.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Autofac" Version="5.2.0"/> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.