cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing Raster Output

pwilliams-3
10-Marble

Drawing Raster Output

Has anyone successfully output a drawing in some raster format with
Pro/TOOLKIT? I know I can export a TIFF with the UI but I can't get it
to work with Pro/TOOLKIT. I am using ProRasterFileWrite. Is there a
different API that I can use to do this? Thanks.



Patrick Williams | Sr. Application Engineer | CAM Systems | Steelcase
Inc. | 616.698.4078








This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

hi patrick,
i export drawing in tiff format using ProPlotfileWrite, setting
"TIFF" as plotter name in plotOpts

ProPlotfileWrite( (ProDrawing)mdl, file_name, &plotOpts );

you must set some options in the plot_option structure.
for example:
strcpy(plotOpts.plotter_name,plotter_name);
plotOpts.paper_size = sheet_info.type;
plotOpts.output_quality = 1;
plotOpts.user_scale = 1.0;
plotOpts.label_plot = 0;
plotOpts.separate_plot_files = 1;
plotOpts.segmented_output = 0;
plotOpts.page_range_choice = 2;
plotOpts.page_range[0] = 1;
plotOpts.page_range[1] = 99;

tiff quality depends by some config options like, i use this settings:
tiff_compression G4
tiff_type MONO
raster_plot_dpi 200

hope this help,

regards,
michele


>Has anyone successfully output a drawing in some raster format with
>Pro/TOOLKIT? I know I can export a TIFF with the UI but I can't get
>it to work with Pro/TOOLKIT. I am using ProRasterFileWrite. Is
>there a different API that I can use to do this? Thanks.
>
>Patrick Williams | Sr. Application Engineer | CAM Systems |
>Steelcase Inc. | 616.698.4078
>
>[]
>
>
>
>
>
>---
>
>You are currently subscribed to toolkits.
>To unsubscribe send a blank e-mail to -.
>
>For assistance, email us at - or find other
>contacts at www.ptcuser.org/org/contacts.html.
>
>PTC/USER and the PTC/USER logo are registered trademarks of PTC/USER, Inc.
>Pro/ENGINEER is a registered trademark of PTC.
>
>Message authors are solely responsible for the content of their posts.
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
Announcements