Using -publish and dsd files

Using -publish and dsd files

Anonymous
Not applicable
6,169 Views
9 Replies
Message 1 of 10

Using -publish and dsd files

Anonymous
Not applicable

Hello all,

 

I am trying to write a autolisp script to publish pdfs from a dsd file. When we load the dsd file with the PUBLISH command, publishing works just fine.

rleuba_0-1593557524969.png

 

However, if I use -PUBLISH and load the same dsd file, it won't work and has the ERROR: device not found.

 

Any tips?

 

 

0 Likes
6,170 Views
9 Replies
Replies (9)
Message 2 of 10

CodeDing
Advisor
Advisor

@Anonymous ,

 

What path are you putting into the "-PUBLISH" command to locate the dsd file?

Ex:

- "//..file.dsd"

- "c:\\me\\desktop\\file.dsd"

 

EDIT:

Also, Try this troubleshooting guide first:

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/device-not-found-when-publishing-in-autocad.html

0 Likes
Message 3 of 10

Sea-Haven
Mentor
Mentor

Are you just trying to plot multiple layouts of a single drawing ? I have lisp for plot a range of layouts to pdf with option of join into single pdf. Just post if you want it. 

0 Likes
Message 4 of 10

maratovich
Advisor
Advisor

Which ERROR do you get?
Give a picture of the error.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 5 of 10

Anonymous
Not applicable

@CodeDing wrote:

@Anonymous ,

 

What path are you putting into the "-PUBLISH" command to locate the dsd file?

Ex:

- "//..file.dsd"

- "c:\\me\\desktop\\file.dsd"

 

EDIT:

Also, Try this troubleshooting guide first:

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/device-not-found-when-publishing-in-autocad.html


This is the line as I have it:

(setvar "filedia" 0)
(command "-publish" "F:\\941-001Apartment\\Dwg\\M200.dsd")

 

 

@Sea-Haven wrote:

Are you just trying to plot multiple layouts of a single drawing ? I have lisp for plot a range of layouts to pdf with option of join into single pdf. Just post if you want it. 


The dsd file has multiple layouts from multiple drawings unfortunately. 

 

 

 

@maratovich wrote:

Which ERROR do you get?
Give a picture of the error.


The command line output looks like this:

Command: DSDPUBLISH
-publish Enter name of sheet list <>: F:\941-001Apartment\Dwg\M200.dsd
'C:\Users\rleuba\Documents\M200.pdf': Errors found

 And the Plot and Publish Details Window Shows:

 Job: - Error(s) Did Not Plot

Job ID: 2
Sheet set name: 
Date and time started: 7/1/2020 9:04:01 AM
Date and time completed: 7/1/2020 9:04:01 AM
UserID: rleuba
Profile ID: 2014Base
Total sheets: 1
Sheets plotted: 0
Number of errors: 1
Number of warnings: 0

 Sheet: M200-M201 - Error(s) Did Not Plot

File: F:\941-001Apartment\Dwg\M200.dwg
Category name: 
Page setup: 
Device name: 
Plot file path: 
Paper size: 

ERROR: Device not found  

 

 

0 Likes
Message 6 of 10

Sea-Haven
Mentor
Mentor

Have thought about changing the code to not ask for range but rather run from say Aeccoreconsole.

 

DWG1 (load "plotpdf")(plotpdf 1 56)

dwg2  (load "plotpdf")(plotpdf 1 100) ;  1000 means all sheets

dwg3  (load "plotpdf")(plotpdf 3 5)

0 Likes
Message 7 of 10

maratovich
Advisor
Advisor

@Anonymous wrote:

 

 Job: - Error(s) Did Not Plot

Job ID: 2
Sheet set name: 
Date and time started: 7/1/2020 9:04:01 AM
Date and time completed: 7/1/2020 9:04:01 AM
UserID: rleuba
Profile ID: 2014Base
Total sheets: 1
Sheets plotted: 0
Number of errors: 1
Number of warnings: 0

 Sheet: M200-M201 - Error(s) Did Not Plot

File: F:\941-001Apartment\Dwg\M200.dwg
Category name: 
Page setup: 
Device name: 
Plot file path: 
Paper size: 

ERROR: Device not found  

 

 

 


Your drawings do not have print settings.
In the drawing, the printer, sheet format and the rest should be selected.
Have you ever printed from your drawing?

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 8 of 10

Anonymous
Not applicable

Thanks for the input folks. I figured out a way to make it work. When creating the dsd file in the "publish" window, you need to have have the "Publish to:" option set up as plotter named in page setup. It won't work if you use the DWG to PDF override. 

 

rleuba_0-1594048330616.png

 

Unfortunately, most of the drawings in my company do not have the plotter set up properly in each drawing. Does anyone know of a way to use the DWG to PDF override with the -publish command?

 

rleuba_1-1594048665172.png

 

 

0 Likes
Message 9 of 10

maratovich
Advisor
Advisor

Add an example of your file.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 10 of 10

gjvriend
Explorer
Explorer

Hello

Filedia shoot be on zero (0)

0 Likes