ProPDFExport - PRO_PDFOPT_VIEW_TO_EXPORT
Hey all,
I want to export a drawing to PDF using ProPDFExport.
As options I use following code snippet since I want to export a special view:
ProPDFOptions pdfOpt;
status = ProPDFoptionsAlloc(&pdfOpt);
status = ProPDFoptionsIntpropertySet(pdfOpt, PRO_PDFOPT_VIEW_TO_EXPORT,PRO_PDF_VIEW_SELECT_BY_NAME);
status = ProPDFoptionsStringpropertySet(pdfOpt,PRO_PDFOPT_SELECTED_VIEW, (wchar_t*)viewNameP);
status = ProPDFExport(drawing, pro_wszPath, pdfOpt);
status = ProPDFoptionsFree(pdfOpt);
at "ProPDFoptionsStringpropertySet(pdfOpt,PRO_PDFOPT_SELECTED_VIEW, (wchar_t*)viewNameP);" I got ProError "Bad Inputs".
So I checked my viewName by using ProViewRetrieve:
ProDrawingDimensionViewGet((ProDrawing)drawing,&dims[i],&viewTemp);
ProDrawingViewNameGet((ProDrawing)drawing,viewTemp, viewName);
ProLine vName;
wcscpy_s(vName, viewName);
status = ProViewRetrieve(drawing, vName, &viewTemp);
To explain: traverse through the dimensions of my ProMdl and ProDrawingViewNameGet works (I get the correct viewName as result). But copying the viewName to vName (ProLine) and then trying to use ProViewRetrieve I get the Error "A general error occurred and the function failed."
????
Someone any Ideas?
Best regards
Luis
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.
