DGN to Printer

Hi there,

Does the MicroStation SDK have a function/method to print directly from a DGN file to an EPSON's printer?

I'd like to build a driver to convert programatically a DWG to DGN and after send to a printer.

Is that possible?

Thanks in advance,

Mauro

  • I am not familiar with the SDK. However, refer to MicroStation Help for printing key-in documentation.

    Help > Contents > Working with Complete Designs > Printing > Print Dialog > Print Dialog Key-ins

    I suggest using printer.pltcfg (Windows printer) with an Epson.

    I also suggest posting to the MicroStation Programming forum with SDK questions.

    communities.bentley.com/.../microstation_programming



  • Hi Mauro,

    it's not quite clear what you are asking for. MicroStation, as any other Windows application, prints opened file (DGN, DWG, SHP...) to selected Windows printer using Windows printing mechanism with possible modification using print configuration file. Is it what you mean by "print directly"? There is also possibilty, using other configuration files, print (better to say convert) opened file to some from supported formats (PDF, HPGL etc.).

    The printing process itself is internal in MicroStation and not accessible using a public API.

    With regards,

    Jan
  • What I'm looking for is printing a DGN by myself, ie, without any help of "Windows printing mechanism".

    However, as you mentioned there is no public APi to do that.

    Thanks for reply,
    Mauro
  • Hi Mauro,

    Unknown said:
    What I'm looking for is printing a DGN by myself, ie, without any help of "Windows printing mechanism".

    Hmmm ... that's pretty specific and rare requirements. Did you check if printing solutions like Bentley InterPlot and e.g. related DriverPack could help you? Both printing and conversion (as you mentioned conversion from DWG to DGN in another thread) requires months and years of development, debuging and optimization.

    Unknown said:
    However, as you mentioned there is no public APi to do that.

    In my opinion it's not the main issue. If you will search in MicroStation programmin forums, maybe you will find some mentions like "If you need access to printing API, ask us directly." ... but frankly, I am not sure I saw it in some public programming or private BDN group. So my assumption is (I have had no reason yet to ask Bentley for it) there is something like printing API internally. But the main problem remains the fact discussed earlier, you cannot produce anything independent using MIcroStation SDK and full MicroStation installation is always required.

    With regards,

      Jan

  • Unknown said:

    Hi there,

    Does the MicroStation SDK have a function/method to print directly from a DGN file to an EPSON's printer?

    I'd like to build a driver to convert programatically a DWG to DGN and after send to a printer.

    Is that possible?

    Thanks in advance,

    Mauro

    while its not exactly what  you wanted a  work around would be  to download Bentley View ( free viewer) and it can VIEW both  DWG and DGN and  allow you to print to printer or even create pdfs via print to pdf no need for conversions...I'm not sure if it can batch print or use  print organiser to print batches...

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me