Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 1 of 7 (194 Views)

Plot to a file share

194 Views, 6 Replies
10-03-2012 11:30 AM

R2012 win7

 

Can you plot to file using a "file share" location? i.e. \\\\bcnymfilp01\\Parts_Labels\\88881"

 

(vl-cmdf ".plot" "Y" "" "\\\\bcnymprtp01\\Proto Label Printer" "Legal" "I" "Landscape" "N" "E" "Fit" "C" "Y" "monochrome.ctb" "Y" "A" "Y" "N" "Y" "\\\\bcnymfilp01\\Parts_Labels\\88881" "Y" "Y")

 

Everything seems to run but when it comes to the plotting, AutoCAD crashes.

 

Findfile works fine:

Command: (findfile "\\\\bcnymfilp01\\Parts_Labels\\50981.plt")
"\\\\bcnymfilp01\\Parts_Labels\\50981.plt"

Valued Contributor
Rick-K
Posts: 88
Registered: ‎07-25-2012
Message 2 of 7 (191 Views)

Re: Plot to a file share

10-03-2012 11:47 AM in reply to: BillZndl

Is  "\\\\bcnymprtp01\\Proto Label Printer" the actual plot device?

 

Type -plot at the command line and step through, type ? at plot device and see if it shows up that way in the list.

 

I am betting all you need is "Photo Label Printer".

 

Also, you could try forward slashes in lieu of double back slashes.  i.e.  "//bcnymprtp01/Proto Label Printer"

I find them easier to read.

 

Rick

Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 3 of 7 (184 Views)

Re: Plot to a file share

10-03-2012 12:17 PM in reply to: Rick-K

 

Okay,

The plotting to the Fileshare works using the "Letter" paper but not with "Legal" so it has to be something else.

I think it might have something to do with the default paper tray.

 

Thanks!

Valued Contributor
Rick-K
Posts: 88
Registered: ‎07-25-2012
Message 4 of 7 (182 Views)

Re: Plot to a file share

10-03-2012 12:22 PM in reply to: BillZndl

I would go to the plot dialog and plot manually.

 

Make sure you select "Save changes to layout".

 

Then type -plot at the command line goto detailed configuration, step through the defaults and see if it plots that way.

 

See what it says when it comes to the paper size.

 

Rick

Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 5 of 7 (175 Views)

Re: Plot to a file share

10-03-2012 12:48 PM in reply to: Rick-K

Wow,

When I try plotting from the plot dialog and set the paper to "Legal" then hit preview,

it crashes AutoCAD just like the command line try does.

 

Valued Contributor
Rick-K
Posts: 88
Registered: ‎07-25-2012
Message 6 of 7 (172 Views)

Re: Plot to a file share

10-03-2012 12:52 PM in reply to: BillZndl

Ok, now we know that it is not a problem with your programing.

 

Legal is probably correct.

 

Maybe it is the driver for the printer and Autocad is having problems with it.

 

See if there is a driver update.

 

Thats all I got.  I dont have any other ideas.

 

Maybe someone else has.

 

Rick

Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 7 of 7 (164 Views)

Re: Plot to a file share

10-03-2012 01:36 PM in reply to: Rick-K

You're right. It's a driver thing with win7.

Thanks.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.