dbroada Posted December 18, 2012 Posted December 18, 2012 does anybody know how to create a very small DXF file with just a rectangular frame and the words "Missing Proforma"? I have a VB6 program for producing our loop drawings which modifies a DXF drawing. All works very nicely but sometimes mistakes are made in the database and my routine gets upset. Previously it just reported the error but today I modified it to look for a "blank" dxf file on the network. This works very well but I am aware that if the folder gets renamed my routine won't find the file. I thought that I could hard code the dxf file into my VB prog but the DXF file I made is VERY big, and I am sure contains a lot more information than is actually necessay for my needs. Anybody able to lend a hand? Quote
Tyke Posted December 18, 2012 Posted December 18, 2012 Here's a small DXF file for you to try out. It still has more than 160 lines in it, but all the garbage has been cleaned out. min-dxf.dxf Quote
dbroada Posted December 18, 2012 Author Posted December 18, 2012 Thanks Ben, I'll give it a go. Quote
Tyke Posted December 18, 2012 Posted December 18, 2012 Try opening the file first, it works OK here on a German Version. If it works the next beer is on you Dave Quote
dbroada Posted December 18, 2012 Author Posted December 18, 2012 a Gluhwein & bratwurst mit pommes und mayo on its way it will do what I want once I work out how to implement it! Quote
Tyke Posted December 18, 2012 Posted December 18, 2012 a Gluhwein & bratwurst mit pommes und mayo on its way it will do what I want once I work out how to implement it! Yup, that's on the agenda for this evening. Three or four hours on the Weihnachtsmart with some friends sampling all sorts of eats and drinks and the little lady is driving home. It should be fun. The snow is gone and we have plus temperatures. Heres some pics: http://www.google.de/search?hl=de&q=chemnitz+weihnachtsmarkt&um=1&ie=UTF-8&tbm=isch&source=og&sa=N&tab=wi Quote
eldon Posted December 18, 2012 Posted December 18, 2012 I believe that you can have a DXF file with only the Entities section needed. Attached is one with less than 100 lines. Tiny-dxf.dxf Quote
Tyke Posted December 19, 2012 Posted December 19, 2012 I believe that you can have a DXF file with only the Entities section needed. Attached is one with less than 100 lines. You're right eldon, it does work. The basic difference between yours and mine is that I had included the 'Headers Section' as well as the 'Entities Section'. My references all say that a DXF file must always have a 'Headers Section', but you have proved that not to be the case. Nice one eldon Quote
dbroada Posted December 19, 2012 Author Posted December 19, 2012 thank you eldon, yes that works too. I'm out of gluhwein so the best I can offer is a day at the Tate Modern I now have what I need (where's that "like" button?) and just have to find a way to implement it. One day. Quote
dbroada Posted December 20, 2012 Author Posted December 20, 2012 just to finish this, I have now hard coded eldon's (modified) dxf file in to my VB6 routine so that a "blank" dxf file gets added to the folder containing all my proforma dxf files. Then if the proforma is not declared correctly in the database my blank is used. Since we only use one (A3) drawing blank this looks to be a working solution. I considered deleting the file on exit just to make it appear to be magic but I'm not sure just yet. Just have to release it in to the office to see who can break it first. Quote
Tyke Posted December 20, 2012 Posted December 20, 2012 Good luck Dave and let's hope nobody breaks it for you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.