kemp
Guest
|
Posted:
Thu Jan 06, 2005 3:21 am Post subject:
What is wrong with this simple code? |
|
|
(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
|
|
kemp
Guest
|
Posted:
Thu Jan 06, 2005 3:34 am Post subject:
Re: What is wrong with this simple code? |
|
|
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 |
|
|