TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on April 11, 2005, 10:51:49 AM
-
hi all
i have this code..
(command "_.open")
but not working..
why ? :cry:
-
Because SDI = 0.
-
Because SDI = 0.
heun !??
but don't want to change the SDI...
because i need to reset to 0 after...
how and why ??
-
search for vbastmt
moving thread ...........
-
search for vbastmt
moving thread ...........
Thanks Mark,..
(moving the post here) :lol:
but do i realy need to load VBA module just for the OPEN command ?
aloso,...i'm not very familar with the "vbastmt" function...
and i can't find any help in AutoCAD... :(
can any one give me a hint or some samples or any link to lurn about this function ??
thanks.
-
ok....
for now i have found this..
To open a drawing :
(command "vbastmt" (strcat "AcadApplication.Documents.Open "
(chr 34) filen (chr 34)))
;where filen is a qualified path and filename
but if i make (setq filen (getfiled...blah blah blah..))
the open dialog box is not the same ...
:evil:
-
Try something along the line of
(defun openMe (/ fn)
(if (setq fn (getfiled "Open drawing" "" "dwg" 8))
(command "VBASTMT"
(strcat "AutoCAD.Application.Documents.Open(\"" fn "\")")
)
)
)
-
Try something along the line of
(defun openMe (/ fn)
(if (setq fn (getfiled "Open drawing" "" "dwg" 8))
(command "VBASTMT"
(strcat "AutoCAD.Application.Documents.Open(\"" fn "\")")
)
)
)
heun !!??
-
Sorry all..
But I can't find a way to obtain the same dialog box when opening a drawing... :cry:
i'm lost... :roll:
-
Same dialog box as what?
-
The standard one that opens normally, when you type open, with all the bells and whistles.