Skip to content

Commit

Permalink
Oguzhan/cnx 747 add support for tekla 2023 (#371)
Browse files Browse the repository at this point in the history
* Create shared project for Tekla connector

* adds shared project

* sync w/ local

* update csproj

* update csproj

---------

Co-authored-by: oguzhankoral <[email protected]>
Co-authored-by: Oğuzhan Koral <[email protected]>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent c1293ff commit a18beec
Show file tree
Hide file tree
Showing 55 changed files with 1,272 additions and 91 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"profiles": {
"Tekla2023": {
"commandName": "Executable",
"executablePath": "C:\\TeklaStructures\\2023.0\\bin\\TeklaStructures.exe"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<TeklaVersion>2023</TeklaVersion>
<UseWpf>true</UseWpf>
<DefineConstants>$(DefineConstants);TEKLA2023</DefineConstants>
</PropertyGroup>

<Target AfterTargets="Build" Name="AfterBuildTekla" Condition="'$(TeklaVersion)' != '' And '$(ContinuousIntegrationBuild)' != 'true'">
<ItemGroup>
<TeklaDlls Include="$(TargetDir)\**\*.*" Exclude="$(TargetDir)*.bmp" />
<TeklaBmp Include="$(TargetDir)\Assets\et_element_Speckle.bmp"/>
</ItemGroup>

<Message Text="TeklaVersion $(TeklaVersion)" Importance="high"/>
<Copy Condition="Exists('$(ProgramData)\Trimble\Tekla Structures\$(TeklaVersion).0')"
DestinationFolder="$(ProgramData)\Trimble\Tekla Structures\$(TeklaVersion).0\Environments\common\extensions\Speckle3TeklaStructures\%(RecursiveDir)"
SourceFiles="@(TeklaDlls)" />
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<Copy Condition="Exists('$(ProgramData)\Trimble\Tekla Structures\$(TeklaVersion).0')"
DestinationFolder="$(ProgramData)\Trimble\Tekla Structures\$(TeklaVersion).0\Bitmaps"
SourceFiles="@(TeklaBmp)" />
</ItemGroup>
<Copy Condition="Exists('C:\TeklaStructures\2023.0')"
DestinationFolder="C:\TeklaStructures\2023.0\Environments\common\extensions\Speckle3TeklaStructures\%(RecursiveDir)"
SourceFiles="@(TeklaDlls)" />
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<Copy Condition="Exists('C:\TeklaStructures\2023.0')"
DestinationFolder="$(ProgramFiles)\TeklaStructures\2023.0\bin\Env\Bitmaps"
SourceFiles="@(TeklaBmp)" />
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="Speckle.Objects" />
<PackageReference Include="Tekla.Structures.Dialog" IncludeAssets="compile; build" VersionOverride =" 2023.0.0" />
<PackageReference Include="Tekla.Structures.Drawing" IncludeAssets="compile; build" VersionOverride =" 2023.0.0"/>
<PackageReference Include="Tekla.Structures.Model" IncludeAssets="compile; build" VersionOverride =" 2023.0.0" />
<PackageReference Include="Tekla.Structures.Plugins" IncludeAssets="compile; build" VersionOverride =" 2023.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Converters\Tekla\Speckle.Converter.Tekla2023\Speckle.Converter.Tekla2023.csproj" />
<ProjectReference Include="..\..\..\DUI3\Speckle.Connectors.DUI.WebView\Speckle.Connectors.DUI.WebView.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>

<ItemGroup>
<None Update="Assets\et_element_Speckle.bmp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<Import Project="..\Speckle.Connector.TeklaShared\Speckle.Connectors.TeklaShared.projitems" Label="Shared" />

</Project>
Loading

0 comments on commit a18beec

Please sign in to comment.