Printing the Autocad drawing by Labview

My application should found the Autocad drawing and send it to one of the network printers/plotters. Is it possible to send the Autocad drawing to printer/plotter by Labview application?

Not really an answer, but some ideas:
If by an Autocad drawing you mean an Autocad DWG file than the general answer will be negative (in any case the solution will not be easy). DWG is not a "printable" (directly) file, it contains many objects/views, etc. From the formal point of view, this is proprietary Autodesk file format with documentation unavailable for users (I'm not sure that trying to decode it will be a good solution as this at least will take awfull amount of your programming time).
If you run on Windows platform and autocad is installed on the same computer than there is a little hope that it is possible to do using automation approach (DDE, ActiveX). LabView have those abilities, the only question rests - I don't know if Autodesk supplies such kind
of services as working with autocad drawing trough DDE/Activex. To make it clear, it's better to contact AutoDesk specialists now.

Similar Messages

  • Can we read AutoCad drawing in LabVIEW using ActiveX??

    Hi hello ,
      Can we read AutoCAD drawing from LabView????

    The other thread in which this issue is discussed can be found here.
    Tom
    Applications Engineering, NI UK

  • How can I import an Autocad drawing in LabView ?

    Hi, I am new in this forum and have just started to use LabView and the DSC module. My question is: Is it possible to import an Autocad drawing in LabView and use it as a background picture with dynamic I/O tags on top of it, e.g. to import a picture of an office and then place status info of temp, light level, doors open/closed etc. on top of the background picture. If anybody has got some example code they would like to share, I would be grateful. Thanks in advance.

    Hi,
    LVDSC supports the BMP and WMF file formats for images. If you can somehow convert your Autocad drawing into any of these formats, using them in your VIs is easy.
    In the Tools>>Datalogging & Supervisory Control menu, you'll find an Image Navigator. This image navigator will allow you to import your images and copies them to Clipboard which you can later paste onto your front panels.
    If you can't convert or 'save as' your Autocad drawing to a BMP/WMF format, as a last resort, you can take a screen dump (hit Alt+PrintScrn) and save it as either of these formats.
    Hope this helps.
    Rgds,
    Khalid

  • I printed an AutoCad drawing to PDF and the PDF looks OK on the screen but when I print the PDF to a printer the text in the drawing is crosshatched with lines and you cant's see the letters, I printed an AutoCad drawing to PDF and the PDF looks OK on the

    I need to know why this crosshatching appears over the text when I print the PDF

    If you use the same Adobe Reader versions with the same PDF on Windows 7 and XP, then I would expect the outcome to be the same.
    Is this a local or online PDF?
    If local, is the file really exactly the same?
    If online, in what browser?

  • Read an AutoCAD drawing In Labview using ActiveX

    I want to read an AutoCAD drawing (.dwg) in the LabVIEW using Activex
    plz send me the procedure for it & the Library files that will be required to get the objects.

    Had to change the labview background color. Here is an image of a dwg file inside the activex control.
    Attachments:
    autocad dwg document inside labview.PNG ‏113 KB

  • How to Print the Excel Sheet From Labview??

    Hii Every body,,
     Actually i am logging my data to Excel Template..... Now in my front panel i will select that excel file and give  print... Now automatically the datas in the excel sheet have to get printed with out opening the excel sheel... how to do?? can any 1 suggest me??

    I think you can get many/most of your answers here in the Excel Board thread in Breakpoint forum.
    - Partha
    LabVIEW - Wires that catch bugs!

  • How to create black and white pdfs from autocad drawing

    I am trying to create a pdf from autocad drawing with searchable text.  Using the default acad pdf driver, it will create searchable text for only TT fonts with width set to 1.0.  We use the monochrome plot settings so pdfs are all black, even if drawing was in color.
    Using 'create pdf' from Acrobat Pro, Acrobat pro will create a pdf from the autocad drawing easily with all text searchable, shape fonts, TT fonts, no matter what the width.  Fantastic.  However, there is no option that I can see to create the pdf in just black and white.  It creates the pdf in drawings original colors.  How do I create a black and white pdf using acrobat pro?  Thanks.

    @gordon15
    The only way to change the color of the printouts from your iPhone is through HP's free mobile app "HP ePrint Home&Biz". This is available in the App Store.
    Simply download and install the app, choose a file to print from within the app, then press the icon at the bottom right of the screen that is a wrench and printer. This should then give you the option to choose the color output. Make your selection, press "Done", then press "Print."
    If you are not seeing this option, you may need to setup ePrint for the printer and then register the app. This registration will also give you more functionality with the app.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Print out of drawing and QA instructions along with PO

    Hi Gurus,
    I have a requirement of printing the material drawing and the Quality instructions along with the PO print out.
    Material drawing is to be sent to the vendor and Quality inspection instructions to the stores.
    I am updating these documents in the additional data of the material master under document data tab page. Every time PO is printed, these documents should also be printed.
    Is there any standard functionality which meets my requirement ?
    Please answer..Thanks in advance
    regards
    Kumar

    Hi,
    You have to take help of ABAP for this. It is not possible in SAP Standard.

  • Unable to open Autocad drawing

    Hi Gurus,
    I have created a document in CV01N using doc type as DW1.
    I have attached the autocad drawing to the document. But while opeing the document in cv04n I am getting the following error.
    1. System message " The system is trying to replace the file C:\Temp\_40012323 Do you want to allow this" I have selected always allow.
    2. System message " The system is trying to execute the program Autocad with the comand linee C:\Temp\_40012323 Do you want to grant permission to execute the program". I have selected always allow.
    3.Error message "Windows cannot find Autocad. make sure you typed the name correctly, And then try again.
    The user had already installed Autocad. Cna you please suggest me any solution for this

    hi pradeep Thanks for your reply please find below the settings
    Define Workstation Application'
    appl             Description   Suffix      ACHID       Start auth   No rename   File format
    ACD     Autocad             A2        Tick                           .dwg,.dxf,*.acd
    'Define Workstation Application in Network
    PC     ACD     1     Autocad     Autocad     %AUTO%
    PC     ACD     2     Autocad     Autocad     %AUTO%
    PC     ACD     3     Autocad     Autocad     %AUTO%
    regards,
    Smruti

  • When printing an AutoCAD-exported PDF file, the paper version has lines that screen does not show

    Hello,
    We were contacted by our customer, a landscape architectural company that uses our product, M-Color, (http://m-color.com) to plot AutoCAD drawings with required preferences and effects.
    However, they provided us with a sample PDF files, that contain examples of scanned drawings, that have some "ghost lines" at the drawings that the screen does not show.
    We tracked the issue and it appears to be an issue with Adobe Reader pringing. We tried many versions from 8.0 version onwards to the latest versions available in public, all represent the same issue.
    This may be an issue of the original drawing having some line that was not marked ending at some point.
    The zip file within the link below has three PDF files, two from the company that brought this issue to our awareness and the one with name "scanstation" is printed by me, and then scanned with markings to explain the issue.
    Any ideas what would be the best solution to solve this issue?
    https://skydrive.live.com/redir?resid=FF1904428CF64324!1445&authkey=!AMwkjv9QMg-Gawg

    Edit>Preferences>Accessibility... Replace Document Colors (use custom colors - black on white)
    That usually fixes ghosting...

  • What is the issue? When printing a 30x42 drawing PDF with 5 pages. The first drawing prints properly, but none of th eothers do. IF I print each separately, by selecting "current page" they print fine. Oh this is for Acrobat XI Standard.

    RE Acrobat XI Standard. When printing a 30x42 Drawing PDF with more than 1 page only the first page prints properly the rest are not the proper size or centered. Did I miss a setting? For now I can work around it by printing each page using the "Current Page" setting, but this delays me when there is more than 20 pages etc..

    RE Acrobat XI Standard. When printing a 30x42 Drawing PDF with more than 1 page only the first page prints properly the rest are not the proper size or centered. Did I miss a setting? For now I can work around it by printing each page using the "Current Page" setting, but this delays me when there is more than 20 pages etc..

  • Printing the grid used in creating a PSE 10 drawing

    Hello,
    I have created a scaled floor plan dwng using the grid in PSE 10. It would be very useful to me to be able to print the grid directly with my drawing - preferably as a semi-opaque 'background'.
    Can this be done?
    Thanks,
    Dan

    1. Add a blank layer and fill with white.
    2. Activate the grid on the white layer.
    3. Take a screenshot of the grid and place it in a new layer. Use the Move tool to resize this layer so that the grid matches the original.
    4. Delete or turn off the visibility of the white layer.
    5. Change the Blend mode of the grid layer to Multiply.
    Note: you can use the PrtSct key for the screenshot but there are utilities where you can draw out the precise region.  I use Winsnap:  http://www.ntwind.com/
    For another method check out msg#2 at
    http://forums.adobe.com/thread/875370

  • How to automatically print the layers of a drawing in separate sheets in one go?

    How to automatically print the layers of a drawing in separate sheets in one go?
    Suppose that my pdf file contains 15 layers and wanted to print each one of these layers separately in separate sheet, then how this sort of work might be done automatically?
    Thank you for the help,
    Best
    Jamal

    No, unfortunately, when you're in Calculation and click "pick"  it closes the previous window. But I can tell you!
    In the Amount field I chose Calculate>Value is the PRODUCT of the following field, and I picked Hour1, which is the field where I entered the formula you provided HOURS1 * 10. I just checked the formula and saw that it was missing a space, and inserted it. So now there is a calculation appearing in the amount column, but it's equal to what I am entering in the Rental Fee Column, not 10x the amount. See illustration. I checked the calculation order (thank you for that) and fixed the sequence.
    Also, when I go to select a number from from drop down box in the Rental Fee column, it now gives me an error message before inserting the number. The error message reads "Must be greater than or equal to 0 or less than or equal to 5."  I have no idea why, when the choices in the column are limited to 0, 1, 2, and 3. Is there a way to send you the actual form through this forum - I think I can upload it to the website and send you a link, correct? Thanks for your help, George.

  • How do you convert an Autocad drawing into a pdf with Acrobat X Standard?

    How do you convert an Autocad drawing into a pdf with Acrobat X Standard?

    Something to try -
    Having installed Acrobat Standard you have the Adobe PDF virtual printer installed.
    From your authoring application do a "file-print" and select the Adobe PDF printer rather than the attached local or network printer / plotter.
    Be well...

  • How to print the report directly without previewing (report viewer) using c# windows application

    Hi,
    Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
    can fill this problem.
    To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
    csCashInvoiceCal csCashCal; --Crystal report name .rpt
    dsCsReceipt dsCs; --created dataset
    DataTable u;
    DataRow s;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private System.Windows.Forms.PrintDialog printDialog1;
    ParameterValues paramValue;
    ParameterDiscreteValue discreteValue;
    ParameterFieldDefinition fieldDefinition;
    private void btnPrint_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt2();
    print2();
    csCashCal.Close();
    this.Cursor = Cursors.Default;
    private void loadReceipt2()
    dsCs = new dsCsReceipt(); --created dataset
    u = dsCs.Tables.Add("DtCsReceipt");
    u.Columns.Add("Qty", Type.GetType("System.String"));
    u.Columns.Add("UOM", Type.GetType("System.String"));
    u.Columns.Add("Description", Type.GetType("System.String"));
    u.Columns.Add("UnitPrice", Type.GetType("System.String"));
    u.Columns.Add("Discount", Type.GetType("System.String"));
    u.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
    s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    s["Discount"] = "";
    s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    u.Rows.Add(s);
    catch (Exception) { }
    csCashCal = new csCashInvoiceCal();
    csCashCal.SetDataSource(dsCs.Tables[1]);
    //csCashCal.Refresh();
    loadParameter2();
    private void loadParameter2()
    ParameterFieldDefinitions paramFieldDefinitions;
    paramValue = new ParameterValues();
    discreteValue = new ParameterDiscreteValue();
    paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
    discreteValue.Value = date;
    fieldDefinition = paramFieldDefinitions["Date"];
    commonParam();
    discreteValue.Value = txtcsno.Text;
    fieldDefinition = paramFieldDefinitions["InvoiceNo"];
    commonParam();
    discreteValue.Value = txtNameTo.Text;
    fieldDefinition = paramFieldDefinitions["CustomerName"];
    commonParam();
    discreteValue.Value = txtAdd.Text;
    fieldDefinition = paramFieldDefinitions["CustomerAddress"];
    commonParam();
    ------other parameters----
    private void commonParam()
    paramValue.Clear();
    paramValue.Add(discreteValue);
    fieldDefinition.ApplyCurrentValues(paramValue);
    private void print2()
    using (printDocument1 = new System.Drawing.Printing.PrintDocument())
    using (this.printDialog1 = new PrintDialog())
    //this.printDialog1.UseEXDialog = true;
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if (dr == DialogResult.OK)
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    try
    csCashCal.PrintOptions.PrinterName = PrinterName;
    csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
    printcount++;
    //saveCountPrint();
    catch (Exception err)
    MessageBox.Show(err.ToString());
    This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
    But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
    with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
    So here is my code so far which I don't know what's next:
    private void button2_Click(object sender, EventArgs e)
    this.Cursor = Cursors.WaitCursor;
    loadReceipt3();
    //print3();
    this.Cursor = Cursors.Default;
    ReportParameter[] parameter = new ReportParameter[11];
    private void loadParameter3()
    parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
    parameter[1] = new ReportParameter("Date", date);
    parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
    parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
    parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
    parameter[5] = new ReportParameter("Agent", agent);
    parameter[6] = new ReportParameter("Discount", "Discount: ");
    parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
    parameter[8] = new ReportParameter("TotalSales", rdtotal);
    parameter[9] = new ReportParameter("Tax", rdtax);
    parameter[10] = new ReportParameter("TotalAmount", rdnet);
    private void loadReceipt3()
    DataSet dsrs = new DataSet();
    DataTable dtrs = new DataTable();
    DataRow drs;
    dtrs.Columns.Add("Qty", Type.GetType("System.String"));
    dtrs.Columns.Add("UOM", Type.GetType("System.String"));
    dtrs.Columns.Add("Description", Type.GetType("System.String"));
    dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
    dtrs.Columns.Add("Discount", Type.GetType("System.String"));
    dtrs.Columns.Add("Amount", Type.GetType("System.String"));
    try
    for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
    drs = dtrs.NewRow();
    drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
    drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
    drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
    drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
    if (discount != 0)
    drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
    else
    drs["Discount"] = "";
    drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
    dtrs.Rows.Add(s);
    catch (Exception) { }
    int addtlRow = 7;
    if (addtlRow > (count - 1))
    addtlRow = addtlRow - (count - 1);
    for (int i = 0; i < addtlRow; i++)
    dtrs.Rows.Add();
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    localreport.Refresh();
    //what's next....
    So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
    Anyway I'm using VS 2010 with sql server 2012 express.
    You're help will be greatly appreciated.
    Thank you,
    Hardz

    After some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
    with my code above and helps solve my question.
    Here's the continuation of the code above:
    private void loadReceipt3()
    loadParameter3();
    LocalReport localreport = new LocalReport();
    localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
    localreport.SetParameters(parameter);
    localreport.DataSources.Clear();
    localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
    Export(localreport);
    print4();
    private IList<Stream> m_streams;
    private int m_currentPageIndex;
    private void Export(LocalReport report)
    string deviceInfo =
    @"<DeviceInfo>
    <OutputFormat>EMF</OutputFormat>
    <PageWidth>8.5in</PageWidth>
    <PageHeight>11in</PageHeight>
    <MarginTop>0.25in</MarginTop>
    <MarginLeft>0.25in</MarginLeft>
    <MarginRight>0.25in</MarginRight>
    <MarginBottom>0.25in</MarginBottom>
    </DeviceInfo>";
    Warning[] warnings;
    m_streams = new List<Stream>();
    report.Render("Image", deviceInfo, CreateStream,
    out warnings);
    foreach (Stream stream in m_streams)
    stream.Position = 0;
    private void print4()
    if (m_streams == null || m_streams.Count == 0)
    throw new Exception("Error: no stream to print.");
    PrintDocument printDoc = new PrintDocument();
    PrintDialog printDlg = new PrintDialog();
    printDlg.Document = printDoc;
    DialogResult dr = printDlg.ShowDialog();
    if (dr == DialogResult.OK)
    if (!printDoc.PrinterSettings.IsValid)
    throw new Exception("Error: cannot find the default printer.");
    else
    printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
    m_currentPageIndex = 0;
    printDoc.Print();
    Dispose();
    public void Dispose()
    if (m_streams != null)
    foreach (Stream stream in m_streams)
    stream.Close();
    m_streams = null;
    private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
    Stream stream = new FileStream(name + "." + fileNameExtension,
    FileMode.Create);
    m_streams.Add(stream);
    return stream;
    private void PrintPage(object sender, PrintPageEventArgs ev)
    Metafile pageImage = new
    Metafile(m_streams[m_currentPageIndex]);
    // Adjust rectangular area with printer margins.
    Rectangle adjustedRect = new Rectangle(
    ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
    ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
    ev.PageBounds.Width,
    ev.PageBounds.Height);
    // Draw a white background for the report
    ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
    // Draw the report content
    ev.Graphics.DrawImage(pageImage, adjustedRect);
    // Prepare for the next page. Make sure we haven't hit the end.
    m_currentPageIndex++;
    ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
    Thank you very much for this wonderful tutorial. :)

Maybe you are looking for

  • How can i calculate distance on Image in a pictureBox ?

    This is a screenshot of what i mean: In the screenshot i have a cone. The cone is moving around 360 degrees. In the form1 top i have this: private float distanceFromCenterKm = 200F; //in kilometers private float distanceFromCenterPixels; //in pixels

  • Large PDF files for vehicle graphics

    Hi, Acrobat Experts I have created the design for graphics on the side of a truck. The file is created in Indesign and the background photo is a 278 MB TIF made in Photoshop at 210dpi in full size. The size of the file is 409 cm by 210 cm. The printe

  • Package use?

    I have the two following classes that are in their own files. I am trying to get packages2 to access packages1 but for some reason I get compiler errors from trying to compile package2, all of which refer to packages1 package Greek; public class pack

  • HT2417 i cannot use my iphone to call my wive's iphone when i call i receive the message this number is not available

    i cannot use my iphone 4s to call my wive's iphone 4s i always receive the message this number is not available

  • [svn:osmf:] 12621: Enabled all unit tests.

    Revision: 12621 Revision: 12621 Author:   [email protected] Date:     2009-12-07 12:57:15 -0800 (Mon, 07 Dec 2009) Log Message: Enabled all unit tests. Modified Paths:     osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as