Message 1 of 1
vb c+ How to access Drawing Properties and Project Data Fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
[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
???