What is wrong with this simple code?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
What is wrong with this simple code?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
kemp
Guest





Posted: Thu Jan 06, 2005 3:21 am    Post subject: What is wrong with this simple code? Reply with quote

(vla-put-PrinterDescPath (vla-get-files (vla-get-preferences
(vlax-get-acad-object))) "S:\\CAD-Setup\\Plotters\\2004")

(vla-put-PrinterStyleSheetPath (vla-get-files (vla-get-preferences
(vlax-get-acad-object))) "S:\\CAD-Setup\\Plot Styles")

I am using ACAD 2k5, but I am testing for 2k4 users and can't see why it
won't path the PrinterDescPath to the 2004 folder. It will work when I
set the path to the folder "S:\\CAD-Setup\\Plotters\\2005"

The second script will not set the value at all on the S drive, but will
set it to local directories on my C drive.

In both cases I am getting a "Automation Error. Invalid Argument"
message. All of the folders do exist, and I have quintuple checked them
to make sure they are correct. (vl-load-com) is loaded as well. What
could be giving me these errors?

thx, kemp

Back to top
kemp
Guest





Posted: Thu Jan 06, 2005 3:34 am    Post subject: Re: What is wrong with this simple code? Reply with quote

I figured it out, permissions on the folders must be set to READ/WRITE.

kemp

kemp wrote:
Quote:
(vla-put-PrinterDescPath (vla-get-files (vla-get-preferences
(vlax-get-acad-object))) "S:\\CAD-Setup\\Plotters\\2004")

(vla-put-PrinterStyleSheetPath (vla-get-files (vla-get-preferences
(vlax-get-acad-object))) "S:\\CAD-Setup\\Plot Styles")

I am using ACAD 2k5, but I am testing for 2k4 users and can't see why it
won't path the PrinterDescPath to the 2004 folder. It will work when I
set the path to the folder "S:\\CAD-Setup\\Plotters\\2005"

The second script will not set the value at all on the S drive, but will
set it to local directories on my C drive.

In both cases I am getting a "Automation Error. Invalid Argument"
message. All of the folders do exist, and I have quintuple checked them
to make sure they are correct. (vl-load-com) is loaded as well. What
could be giving me these errors?

thx, kemp
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB