Re: Help in fixing error
- Posted by gbonvehi Apr 05, 2013
- 1240 views
I have just compared outputs of the .dxf files from this to a file that is valid and found that the problem is some information is being added at the begining of the file that makes it unrecognizable. I removed that info and the file opes fine.
How can I eliminate that info from being transferred?
Thanks
I'm glad you could find the problem. According to the quick reads I made about DXF I was having some doubts if that info was valid or not. It basically adds some information about the current "project".
To remove that extra information, open conic.e file with some editor.
At line 1019 you should see something like
puts(hfile,"999\r\n" & name & " " & date_string() & "\r\n")
You should comment those lines (add two dashes at the beginning of each of them) until and including the following lines:
puts(hfile,"999\r\nNumber of points=") print(hfile,npts) puts(hfile,"\r\n")
After modifications the source should be like:
--puts(hfile,"999\r\n" & name & " " & date_string() & "\r\n") --if length(cmt) then -- puts(hfile,"999\r\n" & cmt & "\r\n") --end if --puts(hfile,"999\r\nDimensions are in " & unts & "\r\n") --puts(hfile,"999\r\nPanel width=") printf(hfile,fmts,w) --puts(hfile," Panel heigth=") printf(hfile,fmts,h) --puts(hfile,"\r\n999\r\n" & thks & "\r\n") --puts(hfile,"\r\n999\r\nOrigin is at " & orgs & "\r\n") --puts(hfile,"999\r\nNumber of points=") print(hfile,npts) --puts(hfile,"\r\n")
Another option is to remove those lines which is easier, just be sure to make a backup :)
That should be it.
Cheers,
Guillermo