|
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
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hello all,
I'm writing a routine and have come across a slight snag. I have this code: Code:
(if (not (vl-catch-all-apply 'vla-open (list dbxDoc dwg))) (progn ;;do my stuff here (vla-saveas- dbxDoc dwg) ) ) TIA
__________________
Michael K. Sretenović Quote:
|
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: 2001-03
Location: Fenton, MO via the UK
Posts: 13,500
![]() |
Hi Mike
Check out the following article by Stig Madsen - Scripting objects Way over my head Have a good one, Mike
__________________
|
|
|
|
|
|
#3 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Here is a simple method too:
Code:
(defun IsRO (fileN / fileH)
(cond ((setq fileH (open fileN "a"))
(close fileH)))
(not fileH))
|
|
|
|
|
|
#4 | |
|
I could stop if I wanted to
Join Date: 2002-02
Location: Galloway, Oh
Posts: 227
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Robert,
That is exactly what I was looking for ![]() Thanks
__________________
Michael K. Sretenović Quote:
|
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Glad I could help!
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editing attribute layer | hbisco | AutoCAD General | 8 | 2005-05-13 03:53 PM |
| Copy Central File | B. Strube | Revit - Worksharing/Worksets | 5 | 2004-09-24 05:32 PM |
| Is there any replacement for BatchPlot in Autocad 04 and 05? | camncad | AutoCAD Plotting | 12 | 2004-06-23 07:37 PM |