AutoCAD P&ID
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
HI,
How Can I open a plant 3D project with C#
I have tried this but it does not work:
string sProject = Path.Combine(ProjectPath.Text , "Project.xml");
PlantProject oProject = PlantProject.LoadProject(sProject, true, "", "");
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The best way I've found is to send the commands to the command line (Pinvoke acedCommand) or use LISP. Set FILEDIA to zero and then you can pass a file name to the OPENPROJECT command.
Isaiah 57:15
ECAD, Inc.
Tips and Tricks on our blog: Process Design, from the Outside

A P3D Authorized Reseller
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for your help, at the moment I am doing the same thing but how can I pass a file name to openproject command programmatically?
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You can build a result buffer and then call acedCommand.
Isaiah 57:15
ECAD, Inc.
Tips and Tricks on our blog: Process Design, from the Outside

A P3D Authorized Reseller
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Sorry! And haw can I get current project name, if I already opened it?
I need know current project name to load dot net libraries depend project.
And finaly I use LISP to load dot net. So I need LISP way.
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I haven't seen any of the plant api exposing functions via LISP. So you are much better of using the .Net api directly. If needed, you can build a dll that references .Net code, and make your own functions exposed to Lisp.
You can get project name information by referencing the project part dll in the installation directory.
Make sure you install the plant 2013 sdk as well.
Isaiah 57:15
ECAD, Inc.
Tips and Tricks on our blog: Process Design, from the Outside

A P3D Authorized Reseller
Re: Plant 3D API - Opening a project?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you for reply! OK I will try to use .Net, but... really... it's too long way opposite simply a couple of LISP strings for this purpose.
