• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • AutoCAD Electrical

    Reply
    Active Contributor
    Posts: 46
    Registered: ‎11-30-2007
    Accepted Solution

    PLC I/O List Report

    383 Views, 3 Replies
    09-10-2011 06:17 PM

    I'm trying to automate the generation of a customised PLC I/O List, using the PLC I/O Address and Descriptions report.

     

    I can't find any mention of a command in the API help.

     

    Can anyone point me in the right direction?

    Please use plain text.
    Employee
    Posts: 458
    Registered: ‎08-01-2007

    Re: PLC I/O List Report

    09-12-2011 06:06 AM in reply to: shiney

    One way to do this for any report is with the Automatic Reports API. Doing it with this API allows you to actually set up more than one report to run at a time.

     

    There are 2 things that need to be setup before this can be used.

     

    1)      The .SET file for the report including the output wanted, i.e.. save to file and/or put on drawing as table. This is created using Reports tab > Miscellaneous Panel > Report Format Setup.

    2)      A report grouping file .RGF. This is created using Reports tab > Miscellaneous panel > Automatic Reports. Pick each report and corresponding .set file as if you are going to run it through this dialog. Then save the group and then exit the dialog.

     

    Now the API can be used at anytime without further dialogs or user input.

     

    (c:ace_auto_rpt rgfnam firstdnam templatenam)

     

    Parameters 

    Description 

    rgfnam 

    Report Grouping file name as created in Automatic Reports dialog box. 

    firstdnam 

    Name of first drawing name if table output is an option and new drawing(s) will be created, can be nil if no new drawings will be created. 

    templatenam 

    Template name if table output is an option and new drawing(s) will be created, nil for no template. 

     



    Pat Murnen
    Principal Content Developer
    Information Modeling and Platform Products Group

    Autodesk, Inc.

    Please use plain text.
    Active Contributor
    Posts: 46
    Registered: ‎11-30-2007

    Re: PLC I/O List Report

    09-12-2011 12:39 PM in reply to: murnenp

    Thanks Pat.

     

    Slightly more roundabout than I expected, but it works well.

    Please use plain text.
    Employee
    Posts: 458
    Registered: ‎08-01-2007

    Re: PLC I/O List Report

    09-12-2011 12:47 PM in reply to: shiney

    Yeah. It takes a little more setup to get it working but once it is setup it can be used just like an API for a specific report. And  you can group multiple reports and run them in one API. You can even run the same report but with different .SET files to get different output (maybe different fields included) in the same grouping. Anyway, glad it worked.



    Pat Murnen
    Principal Content Developer
    Information Modeling and Platform Products Group

    Autodesk, Inc.

    Please use plain text.