I will often get a drawing from a manufacturer of their product so I can place it into a drawing. More often than not, these drawings will consist of a lot of splines to make their shapes.
Now, when I open them, they look fine. I can copy and paste them without issue (within the same drawing or copy them into a new drawing). Everything looks great...until I open that drawing again. At that point, a large portion of the splines are gone so the image looks mostly gone too. This is platform independent (I've tried it on Mac and PC) and on the current version of QCAD too.
Now, by experimenting...if I "Explode" the splines and configure the Explode Splines to Polylines, then I get a version that can be saved. Is that normal?
This is what the control panel looks like when I open the manufacturer's file or when I copy about:
Here is what it looks like after saving and reopening:
Here is the original file:
And here is what happens to it after it is saved (dxf or dwg, it doesn't matter):
Also, are the default settings for the spline to polyline good ones to start with? What is the best way to trim the file size without losing (too much) detail?
Drawings with splines don't save and open well
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.
Re: Drawings with splines don't save and open well
@sguttag
I don't have a solution (maybe a workaround) but I can reproduce the issue.
@Andrew
The splines which are causing the issue are built with Degree 3 splines. It is difficult to select them with the mouse ...
However - if you change the degree to 2 the drawing can be properly saved and will load again without missing entities. After that you can change it back to degree 3 and it is still working ...
I don't have a solution (maybe a workaround) but I can reproduce the issue.
@Andrew
The splines which are causing the issue are built with Degree 3 splines. It is difficult to select them with the mouse ...
However - if you change the degree to 2 the drawing can be properly saved and will load again without missing entities. After that you can change it back to degree 3 and it is still working ...
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: Drawings with splines don't save and open well
QCADpro 3.25.2.1 / win7pro 32 bit
No problem selecting.
No problem saving, nor dwg, nor dxf.
Nor R27, nor R32, nor R14. (Original = dwgR14)
No problem select, copy, paste on new drawing & save dxfR27, revert.
No problem after reboot, reload.
Qubic splines are pretty common.
Regards,
CVH
No problem selecting.
No problem saving, nor dwg, nor dxf.
Nor R27, nor R32, nor R14. (Original = dwgR14)
No problem select, copy, paste on new drawing & save dxfR27, revert.
No problem after reboot, reload.
Qubic splines are pretty common.
Regards,
CVH
Re: Drawings with splines don't save and open well
Unfortunately, this is an issue with the OpenDesign libraries (19.x, 20.x). I've reported the issue and hopefully they will provide a fix or a workaround.
As CVH has pointed out, the Windows 32bit package might be a workaround for you at this point as it still uses the OpenDesign libraries version 4.
Note: These are splines that cannot be produced with QCAD itself (with clamped knot values or "corners" in the middle of the spline).
As CVH has pointed out, the Windows 32bit package might be a workaround for you at this point as it still uses the OpenDesign libraries version 4.
Note: These are splines that cannot be produced with QCAD itself (with clamped knot values or "corners" in the middle of the spline).
Re: Drawings with splines don't save and open well
Not to prove you wrong because it is indeed a different type of splines.
But I think I got this from the QCAD forum.
Spline from control points, qubic, closed:
- click 3 times every hard corner, start with 1 time for the first and ending with 2 times the first again. Regards,
CVH
But I think I got this from the QCAD forum.
Spline from control points, qubic, closed:
- click 3 times every hard corner, start with 1 time for the first and ending with 2 times the first again. Regards,
CVH
Re: Drawings with splines don't save and open well
You can have multiple identical control points in the middle, but you can't clamp them in QCAD (i.e. same value for the knot vector for multiple points that are not end points).
Re: Drawings with splines don't save and open well
I've reported this to OpenDesign and they confirmed the bug. For now, we'll roll back to OpenDesign 4.x where possible.