View Issue Details

IDProjectCategoryView StatusLast Update
0032515CommunityPRODUCTS:DXF Importpublic2021-08-05 17:15
Reporterlucas_morona_164500 Assigned Togka 
PrioritynormalSeverityjust a question 
Status assignedResolutionopen 
PlatformWindowsOSWindows 10 
Product Version7.3.0 
Summary0032515: DXF Import - Is it possible import text from AutoCAD without translation into TopoDS_Shape
DescriptionI would like to know if is possible import text from DXF file. like comentaries.
TagsNo tags attached.
Test case number

Attached Files

  • pic_programmer.dxf (635,394 bytes)
  • Text.dxf (122,243 bytes)
  • WOOD DETAILS.dxf (1,382,053 bytes)

Activities

kgv

2021-08-03 18:10

developer   ~0102961

Please attach sample DXF files reproducing the issue.

lucas_morona_164500

2021-08-04 10:53

reporter   ~0102967

Important, when an I say import text, I am not mean import text as shapes, but as text, because is importing as shapes.

lucas_morona_164500

2021-08-04 10:54

reporter  

pic_programmer.dxf (635,394 bytes)

kgv

2021-08-04 11:14

developer   ~0102970

> but as text, because is importing as shapes.
OK, now I see what you mean.
Currently text entities (DxfEnt_Text, DxfEnt_MText, DxfEnt_MLeader) are converted into TopoDS_Shape entities using Font_BRepFont tool (e.g. DxfData_TranslateText::MakeShape()).
So that initial model DxfEnt does indeed contains original text definition, but translated into TopoDS_Shape afterwards.

I guess it could be challenging to improve current behavior, as XCAF document (inspired by STEP) doesn't yet have a similar as a free-form text.
What it does have is PMI entities, which indeed, could have text annotations, but I have some doubts that it would be appropriate mapping DXF text into PMI entities.

lucas_morona_164500

2021-08-04 11:28

reporter   ~0102971

But is it possible filtrate and separate between text shapes and real shapes, because i need to know what is just text and what is objects, like lines.

lucas_morona_164500

2021-08-05 16:12

reporter  

Text.dxf (122,243 bytes)

lucas_morona_164500

2021-08-05 16:14

reporter   ~0103001

I have update file, in pic programmer text was created as lines, Text.dxf file has only text files, please test with new file.

lucas_morona_164500

2021-08-05 17:11

reporter  

WOOD DETAILS.dxf (1,382,053 bytes)

lucas_morona_164500

2021-08-05 17:12

reporter   ~0103005

I have updated another file, WOOD DETAILS.dxf has shapes and text in same file.

kgv

2021-08-05 17:15

developer   ~0103006

Lucas, thanks for the samples.

Issue History

Date Modified Username Field Change
2021-08-03 18:01 lucas_morona_164500 New Issue
2021-08-03 18:01 lucas_morona_164500 Assigned To => gka
2021-08-03 18:10 kgv Note Added: 0102961
2021-08-03 18:10 kgv Assigned To gka => lucas_morona_164500
2021-08-03 18:10 kgv Status new => feedback
2021-08-03 18:12 kgv Summary Is it possible import text from AutoCAD => DXF Import - Is it possible import text from AutoCAD
2021-08-04 10:53 lucas_morona_164500 Note Added: 0102967
2021-08-04 10:54 lucas_morona_164500 File Added: pic_programmer.dxf
2021-08-04 11:03 kgv Assigned To lucas_morona_164500 => gka
2021-08-04 11:03 kgv Status feedback => assigned
2021-08-04 11:03 kgv Summary DXF Import - Is it possible import text from AutoCAD => DXF Import - Is it possible import text from AutoCAD without translation into TopoDS_Shape
2021-08-04 11:14 kgv Note Added: 0102970
2021-08-04 11:28 lucas_morona_164500 Note Added: 0102971
2021-08-05 16:12 lucas_morona_164500 File Added: Text.dxf
2021-08-05 16:14 lucas_morona_164500 Note Added: 0103001
2021-08-05 17:11 lucas_morona_164500 File Added: WOOD DETAILS.dxf
2021-08-05 17:12 lucas_morona_164500 Note Added: 0103005
2021-08-05 17:15 kgv Note Added: 0103006