There is a DLL call example in AutoCAD program folder, "C:\Program Files\ADT2\Sample\ActiveX\ExternalCall\", that called from VBA project. I would like to see how it works within VLA project. I've tried and unsuccessful. Here is my try. Command: (setq MC (vlax-create-object "ExternalFunction.MyClass")) Initializing VBA System...#<VLA-OBJECT _MyClass 00172668> Command: (vlax-dump-object MC t) ; _MyClass: nil ; No properties ; Methods supported: ; CubeVolume (3) T (vlax-invoke-method MC "CubeVolume" 5.0 5.0 5.0) 0.0 I've tred to import methods and properties as: (vlax-import-type-library :tlb-filename "C:/Program Files/ADT2/Sample/ActiveX/ExternalCall/externalfunction.dll" :methods-prefix "XXX::" roperties-prefix "XXX-" :constants-prefix "XXX_" ) T But, even though this function returns T there will be no XXX... symbol defined in AutoLisp (acad_strlsort (atoms-family 1)) symbol list Can somebody show a simple example of how to call this dll from VLA project? The "externalfunction.dll" file and accompanied source files can be found in: "<AutoCAD installed Folder>\Sample\ActiveX\ExternalCall\" folder Thanks,
Try this: (vlax-invoke-method MC 'CubeVolume 5.0 5.0 5.0) or this (vlax-invoke MC 'CubeVolume 5.0 5.0 5.0)