Hi,
We used api to add text graphics to drawing(dwg/idw) file. On export, the newly added text graphics using transient geometry not showing in pdf file. Please refer attached images.
The same text graphics from part file getting exported to pdf.
Drawing file:
PDF exported from drawing:
part file:
PDF export from part:
Please help to add text on drawing on export similar to part file.
Solved! Go to Solution.
Solved by WCrihfield. Go to Solution.
Hi @prakash.muthu. Exporting a part to PDF has no options, because it is a very odd type of export, so it essentially only gets an image of the model view of the part. Exporting a drawing to PDF is very different, and more highly developed in many ways, so it does not simply take an image of the drawing, but captures actual objects in the drawing, so that those objects will be recognizable within the resulting PDF, such as recognizing lines as geometry, recognizing text as selectable, and readable, recognizing images as images, and so on. If the text you are adding is only transient, then it will not be captured, because it is not 'really' part of the drawing yet. You would need to add the text a different way, such as adding a TextBox into the Border, or TitleBlock, that can be switched out, or creating a SketchedSymbol that you can drop into the drawing before export, then remove again after export. Those would be 'real' and included in the document, so they would be captured by the exporter/translator.
Wesley Crihfield
(Not an Autodesk Employee)
Can't find what you're looking for? Ask the community or share your knowledge.