ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuring system printer

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
204 Views, 0 Replies

Configuring system printer

Hi,

I'm trying to develop a plot manager with ObjectARX for AutoCAD 14... I
now, its pretty old, but AutoDesk is asking 2000 bucks for one upgrade
(we have more than 200 copies), and my company does't want to upgrade
for such price.
Anyway, the problem I'm having is when trying to configure a system
printer. First what I tried to do was to show the printer setup dialog,
get the DEVMODE structure and manually set AutoCADs internal DEVMODE and
DEVNAMES data (acedAcadGetWinApp->SelectPrinter (devnames, devmode));
This did't work, so I tried to manually configure a PC2 file. AutoCAD
also stores DEVMODE structure data inside the PC2 file, and I had some
success when filling this file manually (I can at least change the
target printer correctly), but I don't know how to fill the extra
printer drivers parameters (if you take an autocad generated pc2 file
you can see some 'garbage' that represents this data at the end);
Another problem that I had with this approach was with paper size: when
I generate a PC2 through autocad the paper size recorded in the PC2 is
different from the size returned in DEVMODE structure (dmPaperLenght and
dmPaperWidth members);
Has anyone manually created a PC2 for a system printer before? Or can
someone please point me a better solution for getting the printer
configuration and passing it to AutoCAD...


Thanks in advance,

Tiago Gehring
tiagog@weg.com.br
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost