AutoCAD P&ID General Discussion

AutoCAD P&ID General Discussion

Reply
Contributor
hoangvuminh
Posts: 11
Registered: ‎04-28-2011
Message 1 of 6 (859 Views)
Accepted Solution

Projectmanager-API in Versions

859 Views, 5 Replies
05-16-2011 07:59 AM

Hi all ,

 

I just downloaded the Plant SDK 2011from AutoCAD P&ID 2011. I did go throug the documentation and tried some examples.

What i found out is that , there is some difference between the API of 2011 and API of 2010.

 

For example:

 

The class PnIdObject which was documented but it was never found in Object Browser while developing in Visual Studio ??

:smileyindifferent:

 

How can i get the older api (2010) for AutoCAD P&ID , whiel i do need to buy and install a new one

 

Thanx

 

Hello,

 

Starting in 2011, AutoCAD Plant 3D and P&ID share the same SDK toolkit.  Also (and as you point out), starting with 2011 the SDK is downloaded.  In 2010, the toolkit is installed in a PnPSDK folder that is installed with in the product (and is 32/64 bit specific along with the product).

 

There is no substantive difference in the SDK feature-wise for P&ID-specific features, but the API binaries, including class libraries are different.  So a recompile and some re-referencing can be required (PnIdObject should still be in PnIDmgd.dll, but you need to update the reference).  The biggest difference between the 2011 and 2010 SDK feature-wise is the ability to read Plant 3D objects.

 

If want access to the 2010 SDK to compare, let me know and I can get it to you (there is no change for the SDK).

Here are the 2010 sdk binaries PnPSDK2010 (32 and 64).zip.

Hi again, A note regarding PnIdProject for 2011.  That class is from PnIdProjectPartsMgd.dll, not PnPProjectManagerMgd.dll which the reference guide incorrectly states.  Also, PnIdProjectPartsMgd.dll was not added to the 2011 PlantSDK.  Instead, you can get the file from the program folder.  This should be updated in the next SDK release.

Employee
RSFAdsk
Posts: 172
Registered: ‎02-27-2009
Message 2 of 6 (839 Views)

Re: Projectmanager-API in Versions

05-18-2011 01:28 PM in reply to: hoangvuminh

Hello,

 

Starting in 2011, AutoCAD Plant 3D and P&ID share the same SDK toolkit.  Also (and as you point out), starting with 2011 the SDK is downloaded.  In 2010, the toolkit is installed in a PnPSDK folder that is installed with in the product (and is 32/64 bit specific along with the product).

 

There is no substantive difference in the SDK feature-wise for P&ID-specific features, but the API binaries, including class libraries are different.  So a recompile and some re-referencing can be required (PnIdObject should still be in PnIDmgd.dll, but you need to update the reference).  The biggest difference between the 2011 and 2010 SDK feature-wise is the ability to read Plant 3D objects.

 

If want access to the 2010 SDK to compare, let me know and I can get it to you (there is no change for the SDK).



Richard Frank
AEC Plant Solutions
Autodesk, Inc.
Contributor
hoangvuminh
Posts: 11
Registered: ‎04-28-2011
Message 3 of 6 (823 Views)

Re: Projectmanager-API in Versions

05-19-2011 03:18 AM in reply to: RSFAdsk

Hi Richard ,

 

Thanx for your answer. What i mean now is the PnIdProject and may be PippingProject. Those classes were not found after referencing to the assembly PnPProjectManagerMgd.dll. I am working in Ms visual basic express 2010.

 

PS: Could you plz send me the PlantSDK 2010 ?

 

Have a nice day. :smileywink:

Employee
RSFAdsk
Posts: 172
Registered: ‎02-27-2009
Message 4 of 6 (812 Views)

Re: Projectmanager-API in Versions

05-19-2011 08:27 AM in reply to: hoangvuminh

Here are the 2010 sdk binaries PnPSDK2010 (32 and 64).zip.



Richard Frank
AEC Plant Solutions
Autodesk, Inc.
Employee
RSFAdsk
Posts: 172
Registered: ‎02-27-2009
Message 5 of 6 (783 Views)

Re: Projectmanager-API in Versions

05-26-2011 08:48 AM in reply to: hoangvuminh

Hi again, A note regarding PnIdProject for 2011.  That class is from PnIdProjectPartsMgd.dll, not PnPProjectManagerMgd.dll which the reference guide incorrectly states.  Also, PnIdProjectPartsMgd.dll was not added to the 2011 PlantSDK.  Instead, you can get the file from the program folder.  This should be updated in the next SDK release.



Richard Frank
AEC Plant Solutions
Autodesk, Inc.
Employee
RSFAdsk
Posts: 172
Registered: ‎02-27-2009
Message 6 of 6 (266 Views)

Re: Projectmanager-API in Versions

06-25-2012 06:58 AM in reply to: RSFAdsk

Refreshed link PnPSDK2010(32 and 64).zip  (7.5 MB).



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 P&ID Category!

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

Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.