Message 1 of 4

Not applicable
10-01-2019
07:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to access the database object of specific drawings. Since I'm creating a list of all of the documents that a CAD user has open (for demonstration purpose only):
public void getDWGList() { DocumentCollection docs = Application.DocumentManager; foreach (Document doc in docs) { string currentDwg = doc.Name; dwgList.Add(currentDwg); dwgCount++;
I WILL CALL A FUTURE METHOD HERE WITH THE VARIABLE CURRENTDWG } }
I want to iterate through each drawing and collect some information, which I will store in another list.. How do I specify the document below?
Application.DocumentManager.CURRENTDWG-VARIABLE-FROM-ABOVE.Database;
Solved! Go to Solution.