News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

create pdf with proper linetypes

Started by Steve Sylvest, April 13, 2021, 01:36:42 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Steve Sylvest

When I make PDFs of my drawings, the linetypes do not come out correct.  For example, dashed or centerlines all come out as solid lines.

I have tried two different PDF printer drivers:  PrimoPDF and VCMasterPDF.  I also tried the Save-As command with the PDF chosen as the file type, and adjusted the Settings, trying different numbers for Scale of Linetypes.

When viewing in the Print Preview, all the lines look correct (e.g. dashed, etc.).

Torfinn

I believe you need to change it in your pdf printer's setting.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

Also try setting your Pen Width Scaling to Device Width.  Or one of the other two options, that you're not currently using.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Wildturbo

Quote from: Alvin Gregorio on April 13, 2021, 05:21:58 PM
Also try setting your Pen Width Scaling to Device Width.  Or one of the other two options, that you're not currently using.

Coincidentally I was having the same issue trying to present a long section. My 10m chainage lines would not print in the dashed format I was expecting. I have Foxit Phantom PDF and printed at the highest possible settings but frustratingly there was no difference to the standard "Microsoft print to PDF" printer.
Thanks to Alvin for the advice, I tried the scaling options "Device," "Device Width" and "World" with World being the solution. A bit of trial and error to end up with the solution.

Refer attached.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

Steve Sylvest

I still am having the trouble, but I came up with another clue.  In my case, the problem occurs when the lines are from an external referenced drawing.  The line type style used in the external drawing appear correctly in the working drawing, including when doing Print Preview.  But when printing to a PDF file, they all appear as solid lines (no dashed lines, etc.).

I have experimented with different setting for Devise, World, etc., but cannot get the lines correct in the PDF file.

Alvin Gregorio

Quote from: Steve Sylvest on April 16, 2021, 06:33:57 AM
I still am having the trouble, but I came up with another clue.  In my case, the problem occurs when the lines are from an external referenced drawing.  The line type style used in the external drawing appear correctly in the working drawing, including when doing Print Preview.  But when printing to a PDF file, they all appear as solid lines (no dashed lines, etc.).

I have experimented with different setting for Devise, World, etc., but cannot get the lines correct in the PDF file.

Okay.  Upload/attach the .tcw Drawing File and the XREF file, and we will diagnose and tell you the remedy.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Steve Sylvest

As suggested by Alvin, I am uploaded the drawing (Drawing2) along with the XREF file (Drawing1).  Instead of uploading the actual engineering drawing I was working on, I made a simple test drawing instead.

Note that one line in Drawing 2, in the paperspace tab Arch A is from Drawing 1.  It looks fine in the Drawing 2 and in the print preview, but in the printed PDF it comes out as a solid line.

Alvin Gregorio

Quote from: Steve Sylvest on April 16, 2021, 09:09:22 AM
As suggested by Alvin, I am uploaded the drawing (Drawing2) along with the XREF file (Drawing1).  Instead of uploading the actual engineering drawing I was working on, I made a simple test drawing instead.

Note that one line in Drawing 2, in the paperspace tab Arch A is from Drawing 1.  It looks fine in the Drawing 2 and in the print preview, but in the printed PDF it comes out as a solid line.

I cannot replicate the issue, using your Drawing 2 file.
I'm not using PrimoPDF nor VCMasterPDF; I am using PdfFactoryPro, Adobe_Acrobat_DC, and Windows' Microsoft_Print_to_Pdf-- all output displays correctly in Adobe Reader.
Maybe try Microsoft_Print_to_Pdf.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Steve Sylvest

I tried Microsoft_Print_to_Pdf, and it still had the same problem.  See the PDF attached, and look at the line at the upper left which looks solid (though it is dashed in the Print Preview while in TC).

If this works on your computer, but not on mine, do you think it is some setting under program settings?  Or can you think of some other idea?

John R

Maybe it's due that the XRef is supposed to be "Drawing1.DWG" and we have "Drawing1.TCW".
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Steve Sylvest

John R, Thanks.  I did have that referencing the wrong file.  I had been working with both.

It led me to a partial conclusion on the matter (I think).  When I have a TCW file XREF to a TCW file, it all prints a proper PDF.  If I have a DWG  file XREF to a DWG , that is when it does not make a proper PDF print.

The reason I was experimenting with DWGs is because my "real project" drawings (XREFs and final drawings) are all DWG files, because I am working collaboratively with an office doing DWG only.

Brainstorming a work-around on how I can PDF print my DWG drawings, I tried to converting the DWG back to a TCW (and even tried binding and exploding the blocks that had been xreferrened) but none of that worked.  The line at that point prints solid (though now from a TCW file).

Can you think of any other ideas to check or any other work-around ideas?

Alvin Gregorio

Something I notice about the Line in Drawing 1.tcw-- there is no Print Style available to assign in its Properties.
I don't know why that would be.

Also in Drawing 1.tcw-- The Print Style Table for that drawing is "Use color dependent print style" and the Table is "Normal(missing)(missing)".

And when I create a new Line in Drawing 1.tcw, again the option for assigning a Print Style is not available.

Maybe there's something there with all that; or maybe I am totally missing the mark.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

John R

Quote from: Steve Sylvest on April 16, 2021, 06:27:21 PM
John R, Thanks.  I did have that referencing the wrong file.  I had been working with both.

It led me to a partial conclusion on the matter (I think).  When I have a TCW file XREF to a TCW file, it all prints a proper PDF.  If I have a DWG  file XREF to a DWG , that is when it does not make a proper PDF print.

The reason I was experimenting with DWGs is because my "real project" drawings (XREFs and final drawings) are all DWG files, because I am working collaboratively with an office doing DWG only.

Brainstorming a work-around on how I can PDF print my DWG drawings, I tried to converting the DWG back to a TCW (and even tried binding and exploding the blocks that had been xreferrened) but none of that worked.  The line at that point prints solid (though now from a TCW file).

Can you think of any other ideas to check or any other work-around ideas?

I rarely work with DWG's or XRef's, so I'm not sure where to go from here.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

nikkipollard

DWG in Autocad use a different line scale system
I am not sure about recent versions but in 2000 it was called LTscale. I am sure it has changed now but you needed to change the LTscale before printing from paperspace. I think the dwg filters we use still converts to that system - Try using a world scaling.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Steve Sylvest

Nikki, Thanks for helping me try to figure this out.

For the World setting, do you mean inside the dialogue box as attached, which is from the Pen Properties of the viewport in paperspace of drawing2.dwg (the one being printed)?  In the attached, along the right, I can pick either Device Width or Device.  I can also pick World, but once I close the dialogue box, it reverts back to one of the others.

nikkipollard

Yes that is what I was referring to - it is not a Global setting - So you would have to select all and change the in properties.
You can set By World to default. in property sets. - To make it "stick" for new graphics. - You would need to do that for each tool type.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Steve Sylvest

Following is feedback on what I learned, in case it may help others.  It seems the main problem all along must have been that the Line Pattern Dash Scale needed to be set much larger (such as 100, instead of 1).

I now do not think the problem has any relation to whether using DWG files for the drawing or its external referenced files, nor does it seem to matter whether printing from paper space.  The other pen property was left as Device Width.