Search found 12 matches

by Robert Simpson
18 May 2010, 07:22
Forum: CAD .NET
Topic: DrawTextMeansGDIPlusMethods? Where did you go?
Replies: 7
Views: 32414

Re: DrawTextMeansGDIPlusMethods? Where did you go?

I think we're going in circles. I use this property so that I can render to a metafile, and the metafile will have text instead of lines representing the text. Once I have a metafile, I can draw the metafile to PDF. The resulting text will be selectable, because the metafile had DrawText commands, a...
by Robert Simpson
17 May 2010, 08:33
Forum: CAD .NET
Topic: DrawTextMeansGDIPlusMethods? Where did you go?
Replies: 7
Views: 32414

Re: DrawTextMeansGDIPlusMethods? Where did you go?

You're missing the point ... A minor version release from 7.2.1 to 7.2.5 shouldn't involve a public API change. I use this "property" in order to get selectable text out of a DWG when I render it. You've removed this "property", and therefore I cannot get selectable text when I'm drawing. Hence the ...
by Robert Simpson
04 May 2010, 19:02
Forum: CAD .NET
Topic: DrawTextMeansGDIPlusMethods? Where did you go?
Replies: 7
Views: 32414

Re: DrawTextMeansGDIPlusMethods? Where did you go?

I am rendering DWG's and DXF's to EMF, and then rendering the EMF to PDF. I use this method to ensure that for most cases, I get text instead of line art in my EMF and in my PDF. It's important for me to be able to have selectable text in the finished PDF. If this method is gone, then I'll be forced...
by Robert Simpson
01 May 2010, 00:15
Forum: CAD .NET
Topic: DrawTextMeansGDIPlusMethods? Where did you go?
Replies: 7
Views: 32414

DrawTextMeansGDIPlusMethods? Where did you go?

I upgraded from 7.21 to 7.25, and my code no longer compiles ... where did this method go? I am rendering to a metafile, and need text drawn as text, not line art. I've been using this method for the last year or more to accomplish this, but I'm quite dismayed to find it gone in what should've been ...
by Robert Simpson
05 Feb 2008, 17:43
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

For now I've reverted to using an older version of the cadimport library, which is kindof unfortunate. There's no way for me to write a whole rendering and translation program to draw the CAD drawing to PDF without purchasing another PDF library separately. Also -- I couldn't find any of the objects...
by Robert Simpson
04 Feb 2008, 17:43
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

I'll look into it ... but currently I use EMF because its easy to play back to a printer device -- in this case the "Adobe PDF" or "Ghostscript" printer driver.

Robert
by Robert Simpson
01 Feb 2008, 18:18
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

Sure ... here's what I need to do with a DWG: My end goal is to convert a DWG to PDF with selectable text. This is a small piece of a much larger program to convert many file types to PDF. The older version of CADImport produced an EMF which I was able to rewrite to PDF. Debugging the metafile playb...
by Robert Simpson
01 Feb 2008, 01:27
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

Alright I've figured out why the generated EMF files no longer have text in them ...

You've set the SmoothingMode on the Graphics object to Antialias when you render the EMF file. Can you guys either turn that off or make it user-selectable in CADConst?

Robert
by Robert Simpson
31 Jan 2008, 22:19
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

On a similar note ... I use this code to feed to another module so I can create a fixed document format file. On the older version of CADImport I was using (6.0.2645.16081) generated an EMF with text drawing instructions -- such that my final output document had selectable text. The latest version, ...
by Robert Simpson
31 Jan 2008, 20:16
Forum: CAD .NET
Topic: EMF problem with 6.3.2942.31648
Replies: 8
Views: 31085

EMF problem with 6.3.2942.31648

Given the following snippet of code, which generates several variations of EMF's from a DWG: CADImport.CADImage img = new CADImport.DWG.DWGImage(); img.LoadFromFile(@"e:\Sample Matter\DWG\456253.DWG"); img.SetCurrentLayout(img.DefaultLayoutIndex); using (System.Windows.Forms.Form f = new System.Wind...
by Robert Simpson
14 Dec 2007, 00:52
Forum: CAD .NET
Topic: Multi-threading error
Replies: 2
Views: 11417

I got it sorted out. I was running a production version on one machine on the network, while debugging and making code changes on my development machine. Apparently the library doesn't like that very much.

Robert
by Robert Simpson
11 Dec 2007, 21:48
Forum: CAD .NET
Topic: Multi-threading error
Replies: 2
Views: 11417

Multi-threading error

I am using CADImport in a multi-threaded environment. I use a lock() around the code, which looks something like this: lock(_objlock) { using (CADImage imp = new DWG.DWGImage()) { // Do stuff, load DWG's, etc } } In spite of this global lock, occasionally I am getting pop-up dialogs on the screen cl...