Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

PluginWindowBase Class

The PluginWindowBase class is the base class for plug-in WPF dialogs. The class extends the WindowBase class by adding communications with Tekla Structures.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Dialog
Assembly:  Tekla.Structures.Dialog (in Tekla.Structures.Dialog.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
public class PluginWindowBase : WindowBase

The PluginWindowBase type exposes the following members.

Constructors
  Name Description
Public method PluginWindowBase
Runs the WindowBase constructor and loads the default .NET localization file (DotNetDialogStrings.ail). Datastorage is built based on given viewmodel object
Top
Properties
  Name Description
Public property Localization
The localization instance for the dialog. Each dialog has its own localization instance that has read the localization files needed for that dialog.
(Inherited from WindowBase.)
Public property LocExtension
The localization instance for the dialog. Each dialog has its own localization instance that has read the localization files needed for that dialog.
(Inherited from WindowBase.)
Public property ShowInTaskbar
Hides (shadows) the ShowInTaskbar property by setting the property to false.
Top
Methods
  Name Description
Public method ApplyValues
Loads the dialog values from a file and performs Apply on the loaded values. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
(Inherited from WindowBase.)
Public method Get
Gets the dialog values from the part that is currently selected in Tekla Structures.
Public method GetConnectionStatus
Returns true if a proper connection to the Tekla Structures process has been established. If, for some reason, the connection has been lost, the method will return false. Currently, there's no way to re-establish the connection.
(Inherited from WindowBase.)
Public method InitializeWindow
Prepares the data storage for the dialog and scans through the fields.
(Inherited from WindowBase.)
Public method LoadValues
Loads the dialog values from a file. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
(Inherited from WindowBase.)
Public method ModifyValues
Loads the dialog values from a file and performs Modify on the loaded values. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
(Inherited from WindowBase.)
Public method ReloadWindow
Reloads the dialog values.
Public method SaveValues
Serializes the dialog values to an xml file.
(Inherited from WindowBase.)
Public method ShowWindow
Displays the window.
(Inherited from WindowBase.)
Public method UpdateDataStorageFromViewModel
DO NOT USE! For internal usage only!
(Inherited from WindowBase.)
Top
Events
  Name Description
Public event AttributesLoadedFromModel
The AttributesLoadedFromModel event is triggered just after the attributes have been loaded from the model into the dialog.
Top
See Also