Message 1 of 5
vla-GetInterfaceObject
Not applicable
12-14-2005
08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to call a method in my VS2005 DLL. It was working perfectly fine
until I had to format my drive and reinstall AutoCAD and Visual Studio 2005.
Nothing inside the code in either my Visual Lisp project or the DLL code.
Now, it fails on the vla-GetInterfaceObject call. Is there something I
forgot to install? I used to have VS2003 installed alongside VS2005 when
everything was working but i didn't bother reinstalling it.
Dale
Lisp code:
((member m_type bfld_mods)
(vl-load-com)
(setq $acad (vlax-get-acad-object))
(setq vbstrcls (vla-GetInterfaceObject $acad
"Elevations.BiFolds"))
(setq out (vlax-invoke-method
vbstrcls
"DrawBiFold"
$acad
fname
sc
(car mod_ins)
(cadr mod_ins)
(- unitID 1)
(gp:list->variantArray dim_list)
) ;_ end of vlax-invoke-method
) ;_ end of setq
out
)
until I had to format my drive and reinstall AutoCAD and Visual Studio 2005.
Nothing inside the code in either my Visual Lisp project or the DLL code.
Now, it fails on the vla-GetInterfaceObject call. Is there something I
forgot to install? I used to have VS2003 installed alongside VS2005 when
everything was working but i didn't bother reinstalling it.
Dale
Lisp code:
((member m_type bfld_mods)
(vl-load-com)
(setq $acad (vlax-get-acad-object))
(setq vbstrcls (vla-GetInterfaceObject $acad
"Elevations.BiFolds"))
(setq out (vlax-invoke-method
vbstrcls
"DrawBiFold"
$acad
fname
sc
(car mod_ins)
(cadr mod_ins)
(- unitID 1)
(gp:list->variantArray dim_list)
) ;_ end of vlax-invoke-method
) ;_ end of setq
out
)