Message 1 of 3
Edit drawing detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
In AutoCAD Plant 3D project manager i have this detail windows, how do I access and edit these value via .NET API?
What I try is to use DatabaseSummaryInfoBuilder like this but this is for drawing properties, and it different from that above detail information.
public void SetFileCreator(Database db)
{
Document doc = Application.DocumentManager.MdiActiveDocument;
using (Transaction tr = db.TransactionManager.StartTransaction())
{
DatabaseSummaryInfoBuilder summaryInfoBuilder = new DatabaseSummaryInfoBuilder(db.SummaryInfo);
string currentUserName = WindowsIdentity.GetCurrent().Name;
summaryInfoBuilder.Author = currentUserName;
db.SummaryInfo = summaryInfoBuilder.ToDatabaseSummaryInfo();
tr.Commit();
}
}Thank you
Hoang Minh Quan - Lead Developer
Autodesk Store for IntegaDesign Content
Smart Solutions by IntegaDesign
Plant 3D • CAD Optimization • Automation
Autodesk Store for IntegaDesign Content
Smart Solutions by IntegaDesign
Plant 3D • CAD Optimization • Automation