Printing DWG files with VB .Net

Discussion in 'AutoCAD' started by Aaron@LRS, Jul 30, 2004.

  1. Aaron@LRS

    Aaron@LRS Guest

    Greetings. Can anyone give direction on how to print DWG files from VB .Net? I've seen discussion on using an AutoCAD API to conduct the printing, however, I haven't seen examples. Currently, we are converting the DWGs to BMPs and then printing the BMP through Crystal Reports .Net. But, I feel that there must be a better, more efficient solution with the AutoCAD software.

    Thanks.
     
    Aaron@LRS, Jul 30, 2004
    #1
  2. Just have a look at the samples in the help file.

    You may be using a slightly different syntax in .NET but it's still the
    exact same COM API.
     
    Frank Oquendo, Jul 30, 2004
    #2
  3. Aaron@LRS

    Aaron@LRS Guest

    Thanks, Frank. My problem is that I currently don't have the AutoCAD help at my disposal. Is there any way that you can email the code samples ()?

    I really appreciate your help!

    -ak
     
    Aaron@LRS, Jul 30, 2004
    #3
  4. Do you have AutoCAD installed on your development machine?

    If so, fire it up then go to the Help menu and select "Developer help".
     
    Frank Oquendo, Jul 30, 2004
    #4
  5. Aaron@LRS

    Aaron@LRS Guest

    Unfortunately, I don't. I'm developing an application for another company that has an end goal of printing DWG files. They are hesitant to let me install AutoCAD until I can demonstrate or prove that it is necessary to acheive the end result. Basically, if I can show code that will do what they need, then I can get the go ahead for the installation and continue.
     
    Aaron@LRS, Jul 30, 2004
    #5
  6. So you have no way to test your code? That sounds like a raw deal.
     
    Frank Oquendo, Jul 30, 2004
    #6
  7. So you have no way to test your code? That sounds like a raw deal.
    That's putting it mild - course the client sounds like a REAL bunch of
    winners if they don't understand the difference between a printout of a BMP
    and a DWG. If I even suggested using a rastered image of a drawing for
    printing, all my clients would run away faster than I could blink ;)

    As for help files, search the ng and/or web - there's enough sample code to
    proviide proof of concept w/o writing a line!

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jul 31, 2004
    #7
  8. I don't use VoloView, but a lot of people in the NG do, so maybe someone
    else could tell you if it would meet your needs -- anyone.... anyone....
    Bueller... Bueller?.

    It looks like it's inexpensive, programmable, and compatible with DWG files.
    It's on the Products page at Autodesk.com.

    HTH,
    James
     
    James Belshan, Jul 31, 2004
    #8
  9. I wouldn't base any solution on it. It has no .NET interface [yes, you
    could use COM] and a *very* limited life span - if it is even still
    available. DWF Express/Composer is its replacements. The Composer can do it
    with the DWG plug-in *if* that has been released yet [not sure if still in
    beta]. The downside is it is not free and the plugin is basically a light
    version of LT - NOT what I consder a plug in [about 800mb last I saw it].

    So the dwgs could be converted to dwf and then printed thru the express
    viewer. Have done it and it works fairly well. Just my $0.02!

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jul 31, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.