Q. Using AutoCAD Architecture, we want to take information about the Project properties (Name, Number, Description). All the examples I can find online are to create a new project file using the API. I want to read the Project properties for the currently open Project in Architecture through the API. Is there a simple way to do this?
A. You can use Autodesk.Aec.ProjectConfiguration class. It allows you to access information about the project, such as the name, description, and number. Below is a simple code snippet I added to the API sample AecProjectBaseSampleMgd:
private void Config() { ProjectConfiguration projConfig = proj.Configuration; // new ProjectConfiguration(); string s = projConfig.Name + ", "; s += projConfig.Number + ", "; s += projConfig.Description; Print(s); }

Leave a Reply