ConnectToDraftSight Method (IDsAddin)

ConnectToDraftSight Method (IDsAddin) | Send Feedback
See Also

Calls this method when the add-in is loaded.

DsApp

Cookie

# Syntax

Visual Basic |
--- | ---
    Function ConnectToDraftSight( _
       ByVal DsApp As System.Object, _
       ByVal Cookie As System.Integer _
    ) As System.Boolean

C# |
--- | ---
    System.bool ConnectToDraftSight(
       System.object DsApp,
       System.int Cookie
    )

JavaScript |
--- | ---
    Not supported

COM native C++ |
--- | ---
    HRESULT ConnectToDraftSight(
       IDispatch* DsApp,
       LONG Cookie
       VARIANT_BOOL* Val
    )

C++ |
--- | ---
    DSRESULT ConnectToDraftSight(
        dsObject* DsApp,
        long Cookie
        bool* Val
    )

#### Parameters

DsApp
  Pointer to the DraftSight Dispatch object
Cookie
  Add-in ID

#### Return Value

True if the add-in connected successfully, false if not

# See Also

####

IDsAddin Interface
IDsAddin Members
IDsAddin::DisconnectFromDraftSight