This project has moved. For the latest updates, please go here.

Two Arcs problem


Please review the attached file. When I read this with FreeCAD, Autocad or eDrawings all is OK, but it crashes the dll with error 'Parameter is not valid'.
Could you please help ?

file attachments


Vejen wrote Jun 26 at 11:54 AM

Sorry, the error is 'Parameter is not valid.'

haplokuon wrote Jun 29 at 9:28 AM

I've tested your file and I haven't found anything wrong with it. It loads just fine, it contains the two arcs you mentioned plus three more lines. Did you upload the correct file?


Vejen wrote Jun 29 at 10:52 AM

Hi Daniel,
You are correct that this file is loading perfectly. I am sorry to waste your time. After your last message I found that the original file (which is attached) is loaded, but subsequently corrupted by a post-processor module with an attempt to add circle with radius 0 and then pushed back to the dll which caused the problem.
You can close this issue. Thank you for your help.

haplokuon wrote Jun 30 at 1:49 AM

I should have added, and will add, an out of range exception for the radius value in the arc and the circle constructor just as its corresponding property. This should had avoided your issue in the first place.


Vejen wrote Jun 30 at 9:00 AM

Thank you Daniel.
I hope this correction will help many people in the future since arcs and circles are basic components and probably 99% of the files are containing them. Mistakes like radius=0, sweep angle=0 or line with same start and end point are common when the parameters are calculated by other software modules with no protection for this. Drawing them on the screen will not produce this kind of errors.
Finally, thank you (and all team members) for delivering this library. I really like it. It is easy to work with and delivers huge customer benefits.