AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Active Contributor
shiney
Posts: 46
Registered: ‎11-30-2007
Message 1 of 4 (665 Views)
Accepted Solution

PLC I/O List Report

665 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?

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. 

 

Employee
murnenp
Posts: 601
Registered: ‎08-01-2007
Message 2 of 4 (656 Views)

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.

Active Contributor
shiney
Posts: 46
Registered: ‎11-30-2007
Message 3 of 4 (650 Views)

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.

Employee
murnenp
Posts: 601
Registered: ‎08-01-2007
Message 4 of 4 (647 Views)

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.