Skip to main content
Dec 12, 2023 7:40 PM UTC
Acknowledged

Assign Line Type Scale to Line Fonts when Exporting DXF/DWG Format Drawings

Related products:Creo Parametric

Please include detailed documentation such as screenshots, images or video.

1. What product and version are you running?
Creo Parametric 7.0.9.0


2. What is the problem?
I have a drawing with multiple dashed line fonts. In Creo Parametric, the spacing of these line fonts changes dynamically as I zoom in and out so that they are always readable. When I publish the file to a DXF or DWG format, Creo appears to be assigning a linetype scale factor that I cannot control. When I import the resultant DWG file to AutoCAD, I can use the LTSCALE command to enter a new scale factor. I see when I do this that Creo has assigned the factor 2.585 for this particular drawing. Other drawings have their own scale factors applied, I assume based on the size of the drawing sheet (larger sheets get larger scale factors, resulting in wider spacing).

 

See community discussion that led to this idea post:

https://community.ptc.com/t5/3D-Part-Assembly-Design/Any-way-to-assign-linetype-scale-when-exporting-DXF-DWG-format/m-p/917445/

2023-12-08_16-02-09_POWERPNT.png


3. Are you using a workaround? If yes, please describe it.
One potential workaround is to open the exported DWG in AutoCAD and manually change the LTSCALE value as a post-processing operation.

4. What is the use case for your organization? Describe how your idea would work in context or how it would apply to a practical situation.
As it stands, drawings with dashed lines often appear solid in the DXF/DWG export, which confuses anyone reading the drawing. Allowing Creo to control the scale prior to export would go a long way to reducing that kind of error. For example, a dashed line may represent a feature on the far side of a part in a drawing. When exported to a DXF/DWG, that dashed line appears solid if the spacing is too wide. Anyone reading that drawing will think the line should be solid, and may construct or inspect that part incorrectly.

5. What impact does this problem currently have on your organization? (Number of users affected, hours of lost productivity, etc.)
Drawing misinterpretation leads to scrapped parts, rework, non-comformances, and other costly situations.

3 replies

Dec 12, 2023 8:44 PM UTC

M.C. Anderson,

 

It looks like $LTSCALE, $CELTSCALE, and $PSLTSCALE are DXF header variables.  Perhaps a work around is to modify the header of the DXF file to add the $LTSCALE value before the import.  I don't have a DXF file handy to test.

 

$LTSCALE = Global linetype scale

$CELTSCALE = Current entity linetype scale

$PSLTSCALE = Controls paper space linetype scaling (no special scaling or viewport scaling controls linetype scaling)

 

If all it takes is adding the $LTSCALE to the header of the exported DXF file, it may be an easy fix for PTC to implement via a configuration option.

 

 

 

Dec 13, 2023 8:41 AM UTC
Status changed to: Acknowledged

Hi @M_C_Anderson!

Thank you for your idea. Based on the information you provided, we are acknowledging it as the Community management team. This is not a commitment from the Product team. Other users may comment and vote your idea up.

Jan 20, 2025 7:44 PM UTC

Was searching for a solution to this and ended up following a Google search result to my own thread that I forgot writing. In case I end up doing this again in the future, I found a workaround for our use-case:

 

https://community.ptc.com/t5/3D-Part-Assembly-Design/Line-Style-change-due-to-Format/m-p/669759/highlight/true#M23142

 

  1. (in the .DRW file in Creo Parametric) go to File > Prepare > Drawing Properties
  2. Detail Options > Change
  3. Type line_style_length in the Option field
  4. Type CTRLFONT_S_S 0.2 in the Value field (experiment with the number here)
  5. Press Apply and export the PDF. Note that this will affect ALL items that use this linestyle.

M_C_Anderson_0-1737402261988.png