Code Red > AutoLISP (Vanilla / Visual)
Bye bye VBA
jbuzbee:
With the impending doom of VBA what's the alternative to
--- Code: --- (command "vbastmt" (strcat "AcadApplication.Documents.Open " . . .))?
--- End code ---
:|
Keith™:
huh .. where is the press release?
T.Willey:
Here is how I do it when you are in MDI mode.
--- Code: ---(defun MyOpen (FileName ReadOnly / )
(vla-Open
(vla-get-Documents
(vlax-get-Acad-Object)
)
FileName
(if ReadOnly
:vlax-true
:vlax-false
)
)
)
--- End code ---
jbuzbee:
Keith,
http://discussion.autodesk.com/thread.jspa?threadID=558231
T. Willey,
Thanks.
Keith™:
Ah .. the 64 bit versions .. the problem is Microsoft, not Autodesk ..anyway .. at least now I know what I am up against.. VBA will be around for some time, so long as there are 32bit OS that runs AutoCAD, there will be VBA ... but then .NET is not really a solution ... at least not a secure one.
Navigation
[0] Message Index
[#] Next page
Go to full version