Message 1 of 3
Accessing Global Lisp variable within Dot Net DLL
Not applicable
10-19-2005
11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use the following code to call a sub in a dot net DLL. Is there a way to
access the value of a global Lisp variable? I don't want to save it to
"users" if i don't have to.
(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
(car mod_ins)
(cadr mod_ins)
(- unitID 1)
) ;_ end of vlax-invoke-method
) ;_ end of setq
out
(vlax-release-object vbstrcls)
(vlax-release-object $acad
Dale
access the value of a global Lisp variable? I don't want to save it to
"users" if i don't have to.
(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
(car mod_ins)
(cadr mod_ins)
(- unitID 1)
) ;_ end of vlax-invoke-method
) ;_ end of setq
out
(vlax-release-object vbstrcls)
(vlax-release-object $acad
Dale