[solved] Create dxf file with splines in an external application
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
[solved] Create dxf file with splines in an external application
Hello Together,
I am on developing an airfoil manager. To use the airfoils in qcad, i implement an dxf export.
The airfoil can exported as:
- Lines
- Poligonline
- Spline
Now i try to export two Splines to the dxf file.
One spline for the top side, one line for the bottom side.
Additional i try to export one line as the airfoil chord.
Unfortunately, only the bottom line is displayed, if i open the file in QCad.
Has anyone a little bit mor knowledge about dxf files and can help me?
Also i like to minimize the header.
Attached files:
DXF_Header dxf file with 2 Splines
Thank you and BR
Rainer
p.s. OS Windows or MAC, QCAD Professional V3.27
I am on developing an airfoil manager. To use the airfoils in qcad, i implement an dxf export.
The airfoil can exported as:
- Lines
- Poligonline
- Spline
Now i try to export two Splines to the dxf file.
One spline for the top side, one line for the bottom side.
Additional i try to export one line as the airfoil chord.
Unfortunately, only the bottom line is displayed, if i open the file in QCad.
Has anyone a little bit mor knowledge about dxf files and can help me?
Also i like to minimize the header.
Attached files:
DXF_Header dxf file with 2 Splines
Thank you and BR
Rainer
p.s. OS Windows or MAC, QCAD Professional V3.27
Last edited by RainerP on Thu Feb 10, 2022 4:20 pm, edited 1 time in total.
Re: Create dxf file with splines in an external application
I can confirm that the file "A 18_2Splines.dxf" contains exactly one spline entity (i.e. one "SPLINE" entry in section "ENTITIES").
Re: Create dxf file with splines in an external application
Hello Andrew,
sorry i have attached the wrong file.
This is the correct file : Thank you and BR
Rainer
sorry i have attached the wrong file.
This is the correct file : Thank you and BR
Rainer
Re: Create dxf file with splines in an external application
The new file shows two splines. One zero length and one which is 201.33970578 in length. No units used.
- Attachments
-
- Husky-2022.02.10-01.png (8.01 KiB) Viewed 5638 times
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Create dxf file with splines in an external application
Correction:
1 Spline + 1 zero length line.
Before saving that could have been a Null-Line entity.
Only selectable with TA.
On reload those pop up as zero length lines at the origin angled 0 degrees.
Regards,
CVH
1 Spline + 1 zero length line.
Before saving that could have been a Null-Line entity.
Only selectable with TA.
On reload those pop up as zero length lines at the origin angled 0 degrees.
Regards,
CVH
Re: Create dxf file with splines in an external application
Hello Together,
In the file should be two Splines and one Line.
Unit should be mm.
First Spline starts on line 3948
Second Spline starts on line 4228
The Line starts on line 4508 ans should be from 0,0 to 200,0
LINE
8
0
10
0.000000
20
0.000000
30
0.000000
11
200.000000
21
0.000000
31
0.000000
What is wrong in the dxf file, that only the second spline is displayed and the line has the wrong length?
Thank you and BR
Rainer
In the file should be two Splines and one Line.
Unit should be mm.
First Spline starts on line 3948
Second Spline starts on line 4228
The Line starts on line 4508 ans should be from 0,0 to 200,0
LINE
8
0
10
0.000000
20
0.000000
30
0.000000
11
200.000000
21
0.000000
31
0.000000
What is wrong in the dxf file, that only the second spline is displayed and the line has the wrong length?
Thank you and BR
Rainer
Re: Create dxf file with splines in an external application
A couple of things:
- the file has multiple ENTITIES section for each entity (not sure if this is allowed, certainly not common)
- In the chosen revision of DXF, LINE needs DB entries:
- Both splines use the same handle (ID) which would explain that only one is imported:
- the file has multiple ENTITIES section for each entity (not sure if this is allowed, certainly not common)
- In the chosen revision of DXF, LINE needs DB entries:
Code: Select all
100
AcDbEntity
100
AcDbLine
Code: Select all
5
38
Re: Create dxf file with splines in an external application
I am not a specialist in this but this is how a line (0,0,0) - (0,200,0) looks like exported by QCAD in R13 dxf:
Code: Select all
SECTION
2
ENTITIES
0
LINE
5
39
330
279
100
AcDbEntity
8
0
100
AcDbLine
10
0.0
20
0.0
30
0.0
11
200.0
21
0.0
31
0.0
0
Code: Select all
ENDSEC
0
SECTION
2
ENTITIES
0
... one by one. But I didn't manage to include both at the same time.
With copy/paste under QCAD from 2 trials to a new drawing file I get:
Regards,
CVH
Re: Create dxf file with splines in an external application
Hello together,
thank you for your Help!
With the Info from Andrew, i could fix my probelm! Thank you an have a nice weekend!
BR
Rainer
thank you for your Help!
With the Info from Andrew, i could fix my probelm! Thank you an have a nice weekend!
BR
Rainer