-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oguzhan/cnx 747 add support for tekla 2023 (#371)
* 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
1 parent
c1293ff
commit a18beec
Showing
55 changed files
with
1,272 additions
and
91 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Connectors/Tekla/Speckle.Connector.Tekla2023/Properties/launchSettings.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,9 @@ | ||
{ | ||
"profiles": { | ||
"Tekla2023": { | ||
"commandName": "Executable", | ||
"executablePath": "C:\\TeklaStructures\\2023.0\\bin\\TeklaStructures.exe" | ||
} | ||
} | ||
} | ||
|
59 changes: 59 additions & 0 deletions
59
Connectors/Tekla/Speckle.Connector.Tekla2023/Speckle.Connector.Tekla2023.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,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> |
Oops, something went wrong.