By Fenton Webb
I had a question come up about how to set the DWG Title, DWG Number, etc when adding new files to the project via the API.
You can add the files using:
Autodesk.ProcessPower.ProjectManager.Project.AddPnPDrawingFile()
once added, you can utilize these functions to do what you want with the properties…
Autodesk.ProcessPower.ProjectManager.Project.GetDrawingPropertyValue()Autodesk.ProcessPower.ProjectManager.Project.SetDrawingPropertyValue()
Autodesk.ProcessPower.ProjectManager.Project.GetDrawingProperties()
Autodesk.ProcessPower.ProjectManager.Project.SetDrawingProperties()then call this function to commit the changes…
Autodesk.ProcessPower.ProjectManager.Project.AcceptDrawingProperties()
