Class TopSolidDraftingHostInstance
Represents a TopSolid'Drafting host instance providing WCF services for automating.
Inheritance
Inherited Members
Namespace: TopSolid.Cad.Drafting.Automating
Assembly: TopSolid.Cad.Drafting.Automating.dll
Syntax
[AvailableSinceVersion(7, 10, 0, 0)]
public class TopSolidDraftingHostInstance
Remarks
When automating several instances of TopSolid at the same time one must make and use several instances of this class (one per TopSolid instance), otherwise if only one instance of TopSolid is to be automated, it is possible to simply use the TopSolidDraftingHost static class.
This class is available since v7.10.
Constructors
TopSolidDraftingHostInstance(TopSolidHostInstance)
Initializes a new instance of the TopSolidDraftingHostInstance class.
Declaration
public TopSolidDraftingHostInstance(TopSolidHostInstance inTopSolidHostInstance)
Parameters
Type | Name | Description |
---|---|---|
TopSolidHostInstance | inTopSolidHostInstance | TopSolid host instance. |
Properties
Annotations
Gets access to tables in drafting documents, or null if not connected.
Declaration
public IAnnotations Annotations { get; }
Property Value
Type | Description |
---|---|
IAnnotations |
Draftings
Gets access to drafting documents, or null if not connected.
Declaration
public IDraftings Draftings { get; }
Property Value
Type | Description |
---|---|
IDraftings |
IsConnected
Tells whether TopSolid is connected.
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Tables
Gets access to tables in drafting documents, or null if not connected.
Declaration
public ITables Tables { get; }
Property Value
Type | Description |
---|---|
ITables |
Methods
Connect()
Connects to TopSolid application.
Declaration
public void Connect()
Disconnect()
Disconnect from TopSolid application.
Declaration
public void Disconnect()