AutoCAD Plant 3D General DIscussion

AutoCAD Plant 3D General DIscussion

Posts: 11
Registered: ‎04-28-2011
Message 1 of 2 (114 Views)

Autocad Plant3D - 2011 - Test German Version

114 Views, 1 Replies
09-23-2011 01:30 AM

Hi all ,


I want to develop a net assembly for Autocad Plant3D - 2011 - Test German Version. When i tried to access the PnpTable with name "PnPDrawings" so that i can get information of the drawings. But i can not get it do you know how ?

Posts: 172
Registered: ‎02-27-2009
Message 2 of 2 (100 Views)

Re: Autocad Plant3D - 2011 - Test German Version

09-23-2011 11:58 AM in reply to: hoangvuminh



I think the code below should allow you  to get informatuion from the PnPDrawings table:




   Project prj = PnPProjectUtils.GetProjectPartForCurrentDocument();

   DataLinksManagerdlm = prj.DataLinksManager;

   PnPDatabasedb = dlm.GetPnPDatabase();


   PnPTable tblDwg = db.Tables["PnPDrawings"];


   //Plant SDK 2012 use Select

   PnPRow[] rows = tblDwg.Select();





void dumpRows(PnPRow[] rows)


   foreach (PnPRow r inrows)



void dumpRow(PnPRowr)


   Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;

   ed.WriteMessage("\n ");

   //For every column in the fow list the value.

   foreach (PnPColumn c inr.Table.AllColumns)


      objectval = r[c];


      string.Format("{0}={1} ", c.Name, val));



Richard Frank
AEC Plant Solutions
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 Plant 3D Category!

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

Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!