CreateLispFunction Method (IDocument)

CreateLispFunction Method (IDocument) | Send Feedback
See Also

LispFunction[out]
  LISP function

ApiUuid
  UUID of the add-in or non add-in application

Name
  Unique name for the LISP function

Error[out]
  Result as defined in dsCreateCommandError_e

Creates a LISP function that can be called from LISP.

# Syntax

Visual Basic |
--- | ---
    Function CreateLispFunction( _
       ByVal ApiUuid As System.String, _
       ByVal Name As System.String, _
       ByRef Error As dsCreateCommandError_e _
    ) As LispFunction

C# |
--- | ---
    LispFunction CreateLispFunction(
       System.string ApiUuid,
       System.string Name,
       out dsCreateCommandError_e Error
    )

JavaScript |
--- | ---
    CreateLispFunction(
       ApiUuid : String,
       Name : String
    ) : {
       Error : String,
       LispFunction : dsLispFunction
    }

COM native C++ |
--- | ---
    HRESULT CreateLispFunction(
       BSTR ApiUuid,
       BSTR Name,
       dsCreateCommandError_e* Error,
       ILispFunction** LispFunction
    )

C++ |
--- | ---
    DSRESULT CreateLispFunction(
       const dsString& ApiUuid,
       const dsString& Name,
       dsCreateCommandError_e* Error,
       dsLispFunction** LispFunction
    )

#### Parameters

ApiUuid
  UUID of the add-in or non add-in application
Name
  Unique name for the LISP function
Error[out]
  Result as defined in dsCreateCommandError_e
LispFunction[out] or Return Value
  LISP function

# See Also

####

IDocument Interface
IDocument Members
IDocument::RemoveLispFunction Method ()
ILispParameter Interface

# Availability

DraftSight V1R4.0