mcguirepm Posted December 17, 2008 Posted December 17, 2008 We are trying to open a sheet set and then loop through all of the drawings in the set to pull the drawing properties out to create a custom table. Below is the code, it works fine until I get to the line marked (=>). Public SheetDb As IAcSmDatabase Public SheetSetMgr As IAcSmSheetSetMgr Public Sheetset As IAcSmSheetSet Public SheetT02 As IAcSmSheet Private Sub CBOK_Click() Dim FileName As String FileName = cboFileName.Text Set SheetDb = Nothing Set Sheetset = Nothing 'Open chosen database sheetset file => Set SheetDb = SheetSetMgr.OpenDatabase("\\Gpdfwfile1\mechanical engineering\Sheet sets\PROJECTS\" & FileName, True) 'Lock the database before doing any operation on it Call SheetDb.LockDb 'Get the sheet set from the database Set Sheetset = SheetDb.GetSheetSet Can anyone provide any insights? Thanks, Pat Quote
Andrew1979 Posted December 24, 2008 Posted December 24, 2008 Not sure about that but why don't you use Data Extraction already built into AutoCAD? Goto Tools -> Data Extraction then follow through the wizard from there. You can extract any info you need. Much better method in my opinion. Quote
Andrew1979 Posted December 24, 2008 Posted December 24, 2008 By the way, you can add as many drawings as you like to include in the Data Extraction process. Quote
KaiBo Posted December 31, 2008 Posted December 31, 2008 Hi Mcguirepm, We are trying to attempt something similar in my office. When I tried your code I got an errors on your public variables. I also can’t find the sheet set terms you use in the object Library? Can you tell me were I might find out more about working with sheetsets in my code? Quote
KaiBo Posted December 31, 2008 Posted December 31, 2008 I figured out that I need to reference the AcSmComponents library. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.