By Opening File into AutoCAD I can set the Custom Property(dwgname,dwgid,projectname) of the File.
But I want to set value of these properties without opening AutoCAD application.
I can set it using:
public void SetAttributes(Hashtable hashTable,String fileOpenPath)
Document Doc = Autodesk.AutoCAD.ApplicationServices.Application.D
Database Db = Doc.Database;
DatabaseSummaryInfoBuilder DbSib = new DatabaseSummaryInfoBuilder();
using (Transaction aTran = tm.StartTransaction())
foreach (DictionaryEntry entry in hashTable)
Db.SummaryInfo = DbSib.ToDatabaseSummaryInfo();
Solved! Go to Solution.
>> I want to set value of these properties without opening AutoCAD application
Without having a software that can open and modify a DWG-file you can't alter any content in it.
What may help is that you don't need to load the DWG into the editor, you can just open the file-database using
new DatabaseServices.Database and
- alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.