Edit drawing detail

Edit drawing detail

quan_hm
Collaborator Collaborator
570 Views
2 Replies
Message 1 of 3

Edit drawing detail

quan_hm
Collaborator
Collaborator

Hi all,

In AutoCAD Plant 3D project manager i have this detail windows, how do I access and edit these value via .NET API? 

minhquanqttb_0-1716383516035.png

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
0 Likes
571 Views
2 Replies
Replies (2)
Message 2 of 3

Izhar_Azati
Advocate
Advocate

public static void SetDataMapSummaryInfo( _AcDb.Database db, string title, string subject, string comments, string source, DateTime sourceDate ) {
var summaryInfoBuilder = new _AcDb.DatabaseSummaryInfoBuilder( db.SummaryInfo ) {
Author = "דטהמפ - מערכות מידע גיאוגרפיות בע״מ",
HyperlinkBase = "https://www.datamap.com",
Title = title,
Subject = subject,
LastSavedBy = Environment.UserName,
Comments = comments,
Keywords = "DataMap,GIS,דטהמפ"
};
summaryInfoBuilder.CustomPropertyTable.Clear();
summaryInfoBuilder.CustomPropertyTable.Add( "Source", source );
summaryInfoBuilder.CustomPropertyTable.Add( "SourceDate", sourceDate.ToString( "yyyy-MM-dd" ) );
db.SummaryInfo = summaryInfoBuilder.ToDatabaseSummaryInfo();
}

0 Likes
Message 3 of 3

quan_hm
Collaborator
Collaborator

Hi,

Thank you for your reply but that only change information about the drawing properties, not the quick detail panel like above picture.

Hoang Minh Quan - Lead Developer

Autodesk Store for IntegaDesign Content

Smart Solutions by IntegaDesign

Plant 3D • CAD Optimization • Automation
0 Likes