Skip to content

Commit

Permalink
add exmaple with 2024 devkit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmecosta committed Dec 10, 2024
1 parent 9a8a28e commit 89cae59
Show file tree
Hide file tree
Showing 11 changed files with 1,121 additions and 20 deletions.
32 changes: 12 additions & 20 deletions UserApp.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31112.23
# Visual Studio Version 17
VisualStudioVersion = 17.12.35514.174 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UserApp2019i", "UserApp2019i\UserApp.vcxproj", "{B62304BA-2416-4D08-AB9E-45A77ADED591}"
EndProject
Expand All @@ -14,38 +14,30 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UserApp2021", "UserApp2021\UserApp2021.vcxproj", "{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UserApp2024", "UserApp2024\UserApp2024.vcxproj", "{5711FE96-BC50-4F80-AF37-802B08A2B489}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|Win32.ActiveCfg = Debug|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|Win32.Build.0 = Debug|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|x64.ActiveCfg = Debug|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|x64.Build.0 = Debug|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Release|Win32.ActiveCfg = Release|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Release|Win32.Build.0 = Release|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|x64.ActiveCfg = Debug|x64
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Debug|x64.Build.0 = Debug|x64
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Release|x64.ActiveCfg = Release|Win32
{B62304BA-2416-4D08-AB9E-45A77ADED591}.Release|x64.Build.0 = Release|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|Win32.ActiveCfg = Debug|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|Win32.Build.0 = Debug|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|x64.ActiveCfg = Debug|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|x64.Build.0 = Debug|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Release|Win32.ActiveCfg = Release|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Release|Win32.Build.0 = Release|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|x64.ActiveCfg = Debug|x64
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Debug|x64.Build.0 = Debug|x64
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Release|x64.ActiveCfg = Release|Win32
{AE8FEB06-9A05-4416-8996-C003EFB775E2}.Release|x64.Build.0 = Release|Win32
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Debug|Win32.ActiveCfg = Debug|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Debug|Win32.Build.0 = Debug|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Debug|x64.ActiveCfg = Debug|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Debug|x64.Build.0 = Debug|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Release|Win32.ActiveCfg = Release|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Release|Win32.Build.0 = Release|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Release|x64.ActiveCfg = Release|x64
{DD8F8A8D-1D0D-4381-ADD6-A24880D2567B}.Release|x64.Build.0 = Release|x64
{5711FE96-BC50-4F80-AF37-802B08A2B489}.Debug|x64.ActiveCfg = Debug|x64
{5711FE96-BC50-4F80-AF37-802B08A2B489}.Debug|x64.Build.0 = Debug|x64
{5711FE96-BC50-4F80-AF37-802B08A2B489}.Release|x64.ActiveCfg = Release|x64
{5711FE96-BC50-4F80-AF37-802B08A2B489}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 3 additions & 0 deletions UserApp2024/INP/application.inp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//application inp
UserApp.exe 9
user_macros.inp
152 changes: 152 additions & 0 deletions UserApp2024/INP/user_macros.inp
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
page("Structures", "Tekla")
{

usermacro(6,"j_Hall")
{
icon(1, 3, xs_macro_6, tip_m6)

command(one_point)


tab_page("","jd_Parameters",3)
{
attribute("nframes", "j_no_of_frames", integer, "%d", none, check_maxmin, "100", "1")
{
value("5", 1)
}

attribute("distance", "j_distance_between_frames", distance, "%.2f", none, none, "0.0", "0.0")
{
value("5000.0", 1)
}

attribute("height1", "j_height_of_column", distance, "%.2f", none, none, "0.0", "0.0")
{
value("4000.00", 1)
}

attribute("height2", "j_height_of_middle", distance, "%.2f", none, none, "0.0", "0.0")
{
value("4500.00", 1)
}

attribute("width", "j_width_of_frame", distance, "%.2f", none, none, "0.0", "0.0")
{
value("8000.00", 1)
}

attribute("profile1", "j_column_profile_name", string,"%s", none, none, "0.0", "0.0")
{
value("HEA400", 1)
}

attribute("profile2", "j_beam_profile_name", string,"%s", none, none, "0.0", "0.0")
{
value("IPE330", 1)
}
}

/* ORIG depend(0) */
depend(0)
modify(1)
draw(1, 100.0, 100.0, 0.0, 0.0)
}

userdetail(45, "Round base plate")
{
icon(1, 12, xs_detail_45, tip_d45)
autodir_type(autodir_detail)

tab_page("","jd_Picture",1)
{
part ("j_plate", tpl1, , , pos1, mat, , partname)
picture("470_2_line", 400, 2, 15, 65)

picture("xsu_detail_45_plate", 100, 200, 90, 125)
parameter(" Endplate from edge", e1, distance, number, 200, 100)

picture("xsu_detail_45_stiffeners", 100, 100, 350, 125)
parameter(" Web plate height", hpl1, distance, number, 525, 175)
parameter(" Web plate width", bpl1, distance, number, 450, 250)
parameter(" Web plate chamfer", bj1, distance, number, 450, 100)

attribute("atab1", "j_Bolts", option,"%s", none, none, "0.0", "0.0",373,300,90)
{
value("j_no", 0)
value("j_yes", 1)
}
attribute("atab2", "j_plate_stiffeners", option,"%s", none, none, "0.0", "0.0",373,330,90)
{
value("j_no", 0)
value("j_yes", 1)
}
}
tab_page("","Bolts",2)
{
attribute("bolt_size_lb", "j_bolt_size", label2,"%s", none, none, "0.0", "0.0",20,5)
attribute("bolt_standard_lb", "j_bolt_standard", label3,"%s", none, none, "0.0", "0.0",20,30)
attribute("tolerance_lb", "j_tolerance", label2,"%s", none, none, "0.0", "0.0",20,55)
attribute("thread_in_material_lb", "j_thread_in_material", label3,"%s", none, none, "0.0", "0.0",20,80)
parameter("",diameter, distance, number,160,5,90)
parameter("",screwdin, string, text,160,30,90)
parameter("",tolerance, distance, number,160,55,90)
attribute("thread_in", "", option,"%s", none, none, "0.0", "0.0",160,80,90)
{
value("j_no", 0)
value("j_yes", 1)
}
attribute("assembly_type", "", option,"%s", none, none, "0.0", "0.0",160,111,90)
{
value("j_site", 1)
value("j_workshop", 0)
}

long_hole(260,0)
bolt_structure(469,0)
extra_length(519,143)

picture("xsu_detail_45_bolts", 100, 100, 180, 155)
parameter("", nb, integer, number, 350, 205, 40)
parameter("", lbd, distance_list_no_toggle, number, 400, 205)
}

welding( ,10, 0, , 10, 0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0)
welding( ,10, 0, , 10, 0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0)

picture_used()
}

userjoint(13,"j_Fitting")
{
icon(1, 17, xs_joint_13, tip_j13)
origin_type( collision )
autodir_type(autodir_basic)

part ("j_upper_stiffeners", tj1, bj1, hj1, pos5, mat , , partname) /* pna 230398 pos1 -> pos5 */
part ("j_lower_stiffeners", tj2, bj2, hj2, pos6, mat2, , partname2)

tab_page("","jd_Picture",1)
{
picture("jnt_pict_uj13", 255, 180)
parameter(" Clearance prim/sec", dvl1, distance, number,38)
}
tab_page("","jd_Parameters",3)
{
attribute("weld", "j_weldings", option,"%s", none, none, "0.0", "0.0")
{
value("j_no", 1)
value("j_yes", 0)
}
parameter("j_stiff_dist_from_upper", adist1, distance, number, 2)
parameter("j_stiff_dist_from_lower", adist2, distance, number, 3)
parameter("j_upper_dist_from_beam", adist3, distance, number, 4)
parameter("j_lower_dist_from_beam", adist4, distance, number, 5)
parameter("j_end_plate_max_gap", col, distance, number,6)
}
welding( ,0, 0, , 0, 0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0)
welding( ,0, 0, , 0, 0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0)
welding( ,10, 0, , 10,0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0)
welding( ,10, 0, , 10,0, " ", 0, 1, 0.0, 0, 0.0, 0, 0.0) /* for horiz stiff */
}

}
41 changes: 41 additions & 0 deletions UserApp2024/UserApp.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="bin">
<UniqueIdentifier>{41e2049c-b2bf-4fea-b5f6-77359eecb7dd}</UniqueIdentifier>
</Filter>
<Filter Include="INP">
<UniqueIdentifier>{ed5a366d-f9b7-4c82-a21e-1bd31b3caccf}</UniqueIdentifier>
</Filter>
<Filter Include="Source files">
<UniqueIdentifier>{13b61104-9620-4e39-a083-abf21017868c}</UniqueIdentifier>
<Extensions>c;cpp</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="INP\application.inp">
<Filter>INP</Filter>
</None>
<None Include="INP\user_macros.inp">
<Filter>INP</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ClCompile Include="about_dialog.c">
<Filter>Source files</Filter>
</ClCompile>
<ClCompile Include="fitting_joint.c">
<Filter>Source files</Filter>
</ClCompile>
<ClCompile Include="hall_macro.c">
<Filter>Source files</Filter>
</ClCompile>
<ClCompile Include="info_dialog.c">
<Filter>Source files</Filter>
</ClCompile>
<ClCompile Include="round_plate_detail.c">
<Filter>Source files</Filter>
</ClCompile>
</ItemGroup>
</Project>
56 changes: 56 additions & 0 deletions UserApp2024/UserApp2024.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{5711FE96-BC50-4F80-AF37-802B08A2B489}</ProjectGuid>
<RootNamespace>UserApp2021</RootNamespace>
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<PropertyGroup>
<OutDir>..\BuildDrop\UserApp\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>WIN32;_CONSOLE;_CRT_SECURE_NO_WARNINGS;LEGACY_SOLUTION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">stdcpp17</LanguageStandard>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="INP\application.inp" />
<None Include="INP\user_macros.inp" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="about_dialog.c" />
<ClCompile Include="fitting_joint.c" />
<ClCompile Include="hall_macro.c" />
<ClCompile Include="info_dialog.c" />
<ClCompile Include="round_plate_detail.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\packages\StructuresDevKit.2021.0.1\build\native\StructuresDevKit.targets" Condition="Exists('..\packages\StructuresDevKit.2021.0.1\build\native\StructuresDevKit.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\StructuresDevKit.2021.0.1\build\native\StructuresDevKit.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\StructuresDevKit.2021.0.1\build\native\StructuresDevKit.targets'))" />
</Target>
</Project>
25 changes: 25 additions & 0 deletions UserApp2024/about_dialog.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

#include "e3user.h"

/*------------------------------------------------------------------------*/
/* Structures application's About dialog can be displayed by pushing the */
/* button on top of the connection toolbar. */
/* */
/* The data shown on the About dialog is defined within the */
/* applications xsDeveloperAboutInfo() function */
/*------------------------------------------------------------------------*/

/*------------------------------------------------------------------------*/
int xsDeveloperAboutInfo(char aTitle[], int TitleSize,
char aVersion[], int VersionSize,
char aDate[], int DateSize,
char aCopyright[], int CopyrightSize)
{
STRCPY(aTitle , "About UserApp application" , TitleSize );
STRCPY(aVersion , "Tekla Structures 16.0" , VersionSize );
STRCPY(aDate , "15.12.2009" , DateSize );
STRCPY(aCopyright, "Copyright 1992-2010 Tekla Corporation.\n" , CopyrightSize);
STRCAT(aCopyright, "All rights reserved." , CopyrightSize);

return TRUE;
}
Loading

0 comments on commit 89cae59

Please sign in to comment.