|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
I could stop if I wanted to
Join Date: 2002-02
Location: Galloway, Oh
Posts: 227
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi all,
I have run into a problem with vla-saveas. I have this line of code in my routine: Code:
(vla-saveas dbxDoc dwgName ac2000_dwg) Quote:
Code:
(vla-saveas dbxDoc dwgName nil) TIA
__________________
Michael K. Sretenović Quote:
|
||
|
|
|
|
|
#2 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
You cannot do that with ObjectDBX.
If you use the type library's version of SaveAs, and not AutoCAD's version, that argument is not there. (See attached screen shot) |
|
|
|
|
|
#3 | ||
|
I could stop if I wanted to
Join Date: 2002-02
Location: Galloway, Oh
Posts: 227
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I'm confused
then because I found this in the help ("VBA and ActiveX documentation set" "SaveAs method"):Quote:
__________________
Michael K. Sretenović Quote:
|
||
|
|
|
|
|
#4 | ||
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
However, I may have mispoken on the (vla-SaveAs) approach too. Please try this code: Quote:
I did a (vlax-dump-object dbxdoc T) and notice that the SaveAs method for a DBXDoc only accepts two arguments: ; SaveAs (2) Therefore (vla-SaveAs dbxdoc ...) ought to be running the object's version of SaveAs. But if that call is accepting 3 arguments, something weird is going on. |
||
|
|
|
|
|
#5 | |
|
I could stop if I wanted to
Join Date: 2002-02
Location: Galloway, Oh
Posts: 227
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Robert,
I have tried to use the method you mentioned. I tried it three ways: Code:
(vlax-invoke-method dbxDoc 'saveas dwg) ;;<-- No Error (vlax-invoke-method dbxDoc 'saveas dwg nil) ;;<-- No Error (vlax-invoke-method dbxDoc 'saveas dwg ac2000_dwg) ;;<-- Same error as before .If you have any ideas, I'm willing to try them...
__________________
Michael K. Sretenović Quote:
|
|
|
|
|
|
|
#6 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Well, the flat-out answer is that ObjectDBX does not support saving to other versions. That can be seen in the VBAIDE.
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AutoCAD chokes on script file | michael.12445 | AutoCAD Customization | 9 | 2004-06-24 03:20 AM |