Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

Try opening the file first, it works OK here on a German Version.

 

If it works the next beer is on you Dave ;) :beer:

Posted

a Gluhwein & bratwurst mit pommes und mayo on its way

 

it will do what I want once I work out how to implement it!

 

:beer:

Posted
a Gluhwein & bratwurst mit pommes und mayo on its way

 

it will do what I want once I work out how to implement it!

 

:beer:

 

 

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

Posted

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

Posted
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 :thumbsup:

Posted

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 :rofl:

 

I now have what I need (where's that "like" button?) and just have to find a way to implement it. One day.

Posted

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 :rofl: but I'm not sure just yet.

 

Just have to release it in to the office to see who can break it first.

Posted

Good luck Dave and let's hope nobody breaks it for you :thumbsup:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...