Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CALL VB DLL FORM FROM LISP IN AUTOCAD 2006

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
281 Views, 3 Replies

CALL VB DLL FORM FROM LISP IN AUTOCAD 2006

Hi all ,
I need to call a form that is conpiled in a vb dll activeX from lisp in Autocad 2006 with this function:

(defun isq()
(vl-load-com)
(setq AcadObj nil)
(setq AcadObj (vlax-get-acad-object)
vbdll (vla-getinterfaceobject
AcadObj
"vbdll.ext"
)
)
(vlax-invoke vbdll "Show")
(vlax-release-object vbdll)
(vlax-release-object AcadObj)
(princ)
)

it works fine in Autocad 2005 while in Autocad 2006 it give me an error in line :
(vlax-invoke vbdll "Show")
"that cannot view form in this host application from a dll activeX or a property page".
Is there a 2006 bug ?
Any workaround.
Thanks in advance
Max
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Max,

I hope that this is not a bug in 2006 as I'll be upgrading soon - dragging a number of activex dlls with me from 2002.

What is your VB code for the show method? Are you calling your form as Modal or Modeless?

Peter
Message 3 of 4
Anonymous
in reply to: Anonymous

Hi Petersciganek ,

sub Show()
Form.Appearance = 1
Form.WindowState = vbNormal
Form.ProgressBar1.Value = 0
Form.Show vbModeless
end sub

It's indifferent in modal or in modeless
Thank's in advance
Max
Message 4 of 4
Anonymous
in reply to: Anonymous

Anyone have got this problem with Autocad 2006 ?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost