vb c+ How to access Drawing Properties and Project Data Fields

vb c+ How to access Drawing Properties and Project Data Fields

paul.toth
Contributor Contributor
43 Views
0 Replies
Message 1 of 1

vb c+ How to access Drawing Properties and Project Data Fields

paul.toth
Contributor
Contributor

Hello,
I want to create a small program which after reading the current file name, fill out the fields

Drawing Properties -> Summary -> Title ; and also

Project Data ->Project Info 1 -> Project
a1.pnga2.png

 

[CommandMethod("MyGroup", "cccc", "cccc", CommandFlags.Modal)]

public void cccc() 
{

// find the current file name
var doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
string drawingName = Path.GetFileName(doc.Name);
string drawingName2 = drawingName.Remove(drawingName.Length - 4);
MessageBox.Show(drawingName2); // just to check it is ok

// fill the info with drawingName2

???

44 Views
0 Replies
Replies (0)