Interface IApplication
Represents a connection to a running Tekla Structural Designer instance
Namespace: TSD.API.Remoting
Assembly: TSD.API.Remoting.dll
Syntax
public interface IApplication
Properties
| Name | Description |
|---|---|
| Connected | Gets value indicating if application can be connected |
| UnitConverter | Gets the unit converter |
Methods
| Name | Description |
|---|---|
| CreateDocumentAsync(bool, CancellationToken) | Creates a new document |
| DisconnectAsync(CancellationToken) | Disconnects from the Tekla Structural Designer application |
| GetApplicationTitleAsync(CancellationToken) | Returns Tekla Structural Designer application main window title |
| GetDocumentAsync(CancellationToken) | Gets the document |
| GetVersionStringAsync(CancellationToken) | Returns string representation of Tekla Structural Designer application version |
| OpenDocumentAsync(FileStream?, bool, CancellationToken) | Opens a document from a FileStream |
| OpenDocumentAsync(string?, bool, CancellationToken) | Opens a document |
| StopAsync() | Stops the Tekla Structural Designer application This action is only valid if the application was started from API |
Events
| Name | Description |
|---|---|
| Disconnected | An event invoked when the application disconnects |
| ModelClosed | An event invoked when model is closed |
| ModelOpened | An event invoked when model is opened |
| SelectionChanged | An event invoked when the active selection changed |