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

Hidden lines display and PDF files : the big mystery ...

SOLVED

Re: Hidden lines display and PDF files : the big mystery ...

Has anyone figured out a solution to this problem, RE: I want to utilze the SAVE AS>PDF without the hidden lines obscuring visible solid lines and particularly call-outs or annotations (and avoid the printing with a PDF printer method)?

I am having the same issue the OP mentions however have not found a work around. Please see the image below. The call out arrow as well as the visidble geometry are clearly behind the hidden lines whereas they should be in front. Using a PDF printer resolves the issue however this method is cumbersome and time consuming. I have configured my pen table correctly and I don't believe that is an issue.

Untitled.jpg

Thanks in advance for any help!!

Re: Hidden lines display and PDF files : the big mystery ...

If you used black for the hidden lines the error would go unnoticed.

This is most likely the 'fix' seen in the sequence above.

Probably it is due to PTC performing the HLR based on a front-to-back evaluation for hidden lines, so there is no fix on the user side.

PTC would have to gather all the hidden lines and plot them first or evaluate from back-to-front.

Re: Hidden lines display and PDF files : the big mystery ...

Hello Andrew,

The problem propably lies in the interface_quality config.pro option. While I don't recommend setting this option to lower number than 2, which means 2 or 3 is fine, for the purpose of showing the PDF graphics right, it should be set to 0.

I think there is a way to switch interface_quality from say 2 to 0 and back if you are on Creo Parametric 2.0. That means you could possibly create a single mapkey for PDF export, and also iconize it if you wish.

Try if interface_quality 0 affects your PDFs.

Re: Hidden lines display and PDF files : the big mystery ...

Thanks for the reply however internal drafting standards dictate that all hidden lines must be gray for reading clarification so this is not a viable option for me.

Re: Hidden lines display and PDF files : the big mystery ...

Hi Jakub,

You seem to have hit the nail on the head regarding the config.pro option. It is interesting however that setting interface_quality to 0, 2, or 3 does not resolve the issue whilst setting it to 1 does. Is this option only for plotting purposes? If so I am working exclusively from pdf documents and I presume I could set it to 1 permanently and not worry about generating any mapkey.

Otherwise, I am working on Creo Parametric 2.0 build M100 and would like to learn more about utilizing a mapkey and possibly iconizing it. In spite of working on Creo for about a year and a half now, I had never heard of mapkeys and upon doing some research found the following helpful links:

http://en.wikibooks.org/wiki/Pro_Engineer/Mapkeys

http://communities.ptc.com/thread/39882

I will do some more research and potentially utilize this functionality in the future.

Thanks for the help!!!

Re: Hidden lines display and PDF files : the big mystery ...

Just to add a brief update….

It seems as though something very funny is going on here. From a fresh start in Creo, if I follow the procedure mentioned in my previous post it does not work, ie: the hidden lines are still on top of solid lines, call-outs, annotations etc. Now if I follow the same procedure, ie: with interface_quality set to 1, and choose FILE>SAVE AS then selecting pdf from the drop down menu at the bottom, and when the pdf export settings screen comes up I go to the content tab and at the bottom under the compatibility option I choose PDF/A-1, I get my desired output where the hidden lines are BELOW everything. Without closing Creo I can then go on to resave the file, overwriting the existing file, however this time instead of choosing the PDF/A-1 compatibility I use the standard PDF, it will function correctly.

If I then try and change the interface_quality setting to some of the other options the hidden lines will once again end up on top of everything. So I just leave it set as 1 for the time being. I have never created PDF/A files for drawings before and don’t really understand exactly what is going on here.

Re: Hidden lines display and PDF files : the big mystery ...

Ah yes, so it's 1 and not 0 then. Could you post the contents your pnt file here? Mine is still set as you can see in the post up above, that means I print in all black.

Well, as for the mapkey including the interface quality change. First you need to put the following line into your config.pro:

content_favorites_page_options interface_quality

Then also add the following mapkey into your config.pro as well:

mapkey -pdf @MAPKEY_LABELExport drawing to PDF;\

mapkey(continued) ~ Select `main_dlg_cur` `appl_casc`;~ Close `main_dlg_cur` `appl_casc`;\

mapkey(continued) ~ Command `ProCmdRibbonOptionsDlg` ;\

mapkey(continued) ~ FocusIn `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY`;\

mapkey(continued) ~ Update `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY` `1`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY`;\

mapkey(continued) ~ FocusOut `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` `OkPshBtn`;\

mapkey(continued) ~ FocusIn `UITools Msg Dialog Future` `no`;\

mapkey(continued) ~ Activate `UITools Msg Dialog Future` `no`;\

mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdExportPreview` ;\

mapkey(continued) ~ Command `ProCmdDwgPubSetDeliverable` `DXF`;\

mapkey(continued) ~ Command `ProCmdDwgPubSetDeliverable` `PDF`;\

mapkey(continued) ~ Command `ProCmdDwgPubSettings` ;\

mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_lines` 1 `pdf_hidden_solid`;\

mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_lines` 1 `pdf_hidden_dashed`;\

mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_pentable` 0;\

mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_pentable` 1;\

mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_launch_viewer` 0;\

mapkey(continued) ~ Select `intf_profile` `pdf_export.PDFMainTab` 1 `pdf_export.PDFContent`;\

mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_font_stroke` 1 `pdf_stroke_all`;\

mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_font_stroke` 1 `pdf_stroke_none`;\

mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_hyperlinks` 0;\

mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;~ Command `ProCmdDwgPubExport` ;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\

mapkey(continued) ~ Command `ProCmdDwgPubCloseExportPvw` ;~ Select `main_dlg_cur` `appl_casc`;\

mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdRibbonOptionsDlg` ;\

mapkey(continued) ~ FocusIn `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY`;\

mapkey(continued) ~ Update `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY` `2`;\

mapkey(continued) ~ FocusOut `ribbon_options_dialog` \

mapkey(continued) `favorites_layouts.InputPanel_ip.INTERFACE_QUALITY`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` `OkPshBtn`;

Restart Creo, open up a drawing, and then just type pdf into the search field, you will see search result like on the following picture.

pdf_mapkey_search.JPG

You can click onto the command to make it run from there, and also you can just add the icon anywhere on your ribbon via options menu.

Interface quality affects other filetypes as well, not just PDFs.

Re: Hidden lines display and PDF files : the big mystery ...

PDF/A is the Archive suggested practice. The main requirement is the file have no external references, such as referring to fonts that are supposed to be loaded by the PDF processor; instead fonts are to be embedded.

It's likely there is some other flaw that has nothing really to do with PDF/A, but the group that wrote the PDF/A part fixed what the other group didn't.

From Wikipedia on PDF/A

  • Audio and video content is forbidden.
  • JavaScript and executable file launches are forbidden.
  • All fonts must be embedded and also must be legally embeddable for unlimited, universal rendering. This also applies to the so-called PostScript standard fonts such as Times or Helvetica.
  • Colorspaces specified in a device-independent manner.
  • Encryption is forbidden.
  • Use of standards-based metadata is mandated.
  • External content references are forbidden.
  • LZW and JPEG2000 image compressions are forbidden in PDF/A-1, but JPEG 2000 compression is allowed in PDF/A-2.
  • Transparent objects and layers (Optional Content Groups) are forbidden in PDF/A-1, but they are supported in PDF/A-2.
  • Provisions for digital signatures in accordance with the PAdES (PDF Advanced Electronic Signatures) standard are supported in PDF/A-2.
  • Embedded files are forbidden in PDF/A-1, but PDF/A-2 offers the possibility to embed PDF/A files, allowing archiving of sets of PDF/A documents in a single file. PDF/A-3 allows embedding of any file format such as XML, CAD and others into PDF/A as complete archived objects.
  • The use of XML-based XML Forms Architecture (XFA) forms is forbidden in PDF/A-2. XFA is also not allowed in PDF/A-1, because it is used in PDF specification since PDF 1.5. (The preservation of the XFA form data in a PDF/A-2 file may be done by moving from XFA key to the Names tree that itself is the value of the XFAResources key of the Names dictionary of the document catalog dictionary.)
  • Interactive PDF forms - Every form field shall have an appearance dictionary associated with the field's data in PDF/A. The appearance dictionary shall be used when rendering the field, the value of a form field shall not be used.
Highlighted

Re: Hidden lines display and PDF files : the big mystery ...

Assuming you are referring to my pen table, it is attached. I am only working in gray and black with two line thicknesses however as can be seen form the image above, centerlines and axes appear in a reddish color which I don't mind so much and assuming this setting has been carried over from the default values, I will likely leave it alone. I am follow line guidelines specified within ASME Y14.100 and ASME Y14.5. So far I have not had the necessity to make any additional modifications to my pentable other than what I have for three first pens in order to maintain these line conventions.

Thanks for the info regarding mapkeys! I will consider it in the future when I have some spare time.

You stated, "Interface quality affects other filetypes as well, not just PDFs."

What other file types should I be concerned about?