You posted in wrong forum: this forum is AutoCAD VBA/COM API.
You should post in forums for AutoCAD Plant3D/P&ID and/or .NET forum (but you should clearly describe that your questions/issues are with AutoCAD Plant 3D/P&ID specific, which have nothing to do with plain AutoCAD .NET API.