Post build plugin in visual studio.
Watch out - change the version ID to suit your Tekla version!
set envDir=2022.0\Environments\common\extensions\TestWPFBeamPlugin
set pluginsDir=2022.0\nt\bin\plugins\TestWPFBeamPlugin
set tsDirA=D:\Program Files\Tekla Structures\
if $(ConfigurationName) == Debug (
if exist "%tsDirA%" xcopy "$(TargetDir)*$(TargetExt)" "%tsDirA%\%envDir%" /y /c /q
)
The Reloadplugins.cs file:
#pragma warning disable 1633 // Unrecognized #pragma directive
#pragma reference "Tekla.Macros.Akit"
#pragma reference "Tekla.Macros.Wpf.Runtime"
#pragma reference "Tekla.Macros.Runtime"
#pragma warning restore 1633 // Unrecognized #pragma directive
namespace UserMacros
{
public sealed class Macro
{
[Tekla.Macros.Runtime.MacroEntryPointAttribute()]
public static void Run(Tekla.Macros.Runtime.IMacroRuntime runtime)
{
Tekla.Structures.ModelInternal.Operation.dotStartAction("dotdiaLoadDialogs", "");
Tekla.Structures.ModelInternal.Operation.dotStartAction("dotdiaReloadDialogs", "");
Tekla.Structures.Model.Operations.Operation.DisplayPrompt("Dialogs reloaded..");
}
}
}