AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I Retrieve AutoCAD Architecture Project APJ File using .NET API?

2 REPLIES 2
Reply
Message 2 of 3
ramesh_choudhari
732 Views, 2 Replies

How can I Retrieve AutoCAD Architecture Project APJ File using .NET API?

Hello everyone,  We are  currently building an AutoCAD Architecture connector, Is there a method within the AutoCAD Architecture .NET API to retrieve the project APJ file of current active project? I'm require access to the project APJ file for my application. Any insights or sample code on how to accomplish this would be very helpful.

ramesh_choudhari_0-1712573277442.png

 

Tags (1)
2 REPLIES 2
Message 1 of 3

Hello everyone, We are currently building an AutoCAD Architecture connector and need to access the tabs within the Project Navigator programmatically using the .NET API. Any guidance or code examples would be greatly appreciated

ramesh_choudhari_1-1712572922404.png

 

Message 3 of 3
Gepaha
in reply to: ramesh_choudhari

All the support is provided at the file system level and there is no support for interacting with the Project Browser and Project Navigator UI directly from the API.

You will need to reference AecProjectBaseMgd.dll.

Autodesk.Aec.Project namespace.

  • Autodesk.Aec.Project – The main project class;
  • Autodesk.Aec.Project.ProjectBaseManager – The system wide Project Manager. This contains many utility methods to manipulate projects;
  • Autodesk.Aec.ProjectBaseServices – A helper class used to obtain the single ProjectBaseManager object;
  • Autodesk.Aec.ProjectConfiguration – Contains information about the project (such as the name, description, and number);
  • Autodesk.Aec.Project.Project - Adding/Removing Constructs, Views, Elements;
  • Autodesk.Aec.Project.ProjectFile - Files in Autodesk.Aec.Project.Project.

Sample project AecProjectBaseSampleMgd in

  • C:\Program Files\Autodesk\AutoCAD xxxx\Sample\CS.NET\

Sample project AecProjectBaseSampleMgd demonstrates the use of the Project Management system.
The sample implements “ProjectSample” command.
[ls/cd/open/pwd/check/mode/upgrade/downgrade] Options:

  • “ls” to list categories of folders and files in the Project;
  • “cd “ to move up/down the Project hierarchy;
  • “open” to open drawings in the Project;
  • “pwd” to find the path in the Project;
  • “check” to find Xref of a drawing;
  • “mode” to show Project’s open status (read/write);
  • “upgrade/downgrade” to change the open status.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report