.NET

Reply
Valued Contributor
e.g.
Posts: 65
Registered: ‎07-23-2008
Message 1 of 2 (187 Views)

setting "PrinterConfigDir"

187 Views, 1 Replies
02-27-2013 11:16 PM

Hello,

 

I am using Autocad 2012 64bit and I have a small printing routine to create predefined B size pdfs. The problem I face is that when I change the "PrinterStyleSheetDir" path using acedSetEnv method (see http://adndevblog.typepad.com/autocad/2012/06/a-simple-alternative-to-accessing-the-com-preferences-...

 

the plot preview appears in color, as the pen table is not found. Even if I try a regular Autocad plot, it does the same output (although the pen table name is shown correctly in the list). Actually I have to open the OptionsDialog and reselect the path into the "Plot Style Table Search Path" and click Apply, then the plots will be ok.

 

I am using the same method to adjust the "PrinterConfigDir" (pointing to only one Dwg to Pdf.pc3) and this part is ok but it seems that changing the "PrinterStyleSheetDir" is not "saved" until I click Apply in the OptionsDialog.

 

This will affect not only the pdfs but all the other prints I have to do(for ex. when using publish).

 

Is anything that I might be missing?

 

Thanks for any suggestions.

 

e.g.

ADN Support Specialist
Balaji_Ram
Posts: 666
Registered: ‎03-21-2011
Message 2 of 2 (120 Views)

Re: setting "PrinterConfigDir"

03-12-2013 04:42 AM in reply to: e.g.

Hello,

 

Sorry for the delay.

 

There doesnt seem to be a solution for this behavior.

 

While the "setvar" can set multiple folders to the PrinterStyleSheetDir, it does not ensure that AutoCAD recognises all those paths. The COM API using "vla-put-PrinterStyleSheetPath" ensures that AutoCAD recognises the path but it does not support adding multiple folder paths. This has been logged in our internal database and will likely be addressed in future release.

 

For now, the only way that I can think of is to provide a single folder path with "vla-put-PrinterStyleSheetPath" API and then reset it to what it was after your work is done.

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community