Code Red > .NET

Sync (refresh) a Sheet Set

<< < (2/2)

pBe:
Thank you for your patience Jeff_M..

I'm getting a squiggly lines under acDoc.Database.AcadDatabase;

Cannot implicitly convert type 'object' to 'AXDBLib.AcadDatabase'. An explicit conversion exists (are you missing a cast?

Jeff_M:
Sorry, this should do it:           
 AcadDatabase acadDatabase = (AcadDatabase)acDoc.Database.AcadDatabase;

pBe:
I'll give it a go. keep you posted

Thank you Jeff_M

Its not generating any error but it does not refresh the Sheet views . I'll keep digging..

pBe:
Haven't had any luck with this yet, 

I used the codes from the CP318-4 by  Lee Ambrosius
http://forums.augi.com/showthread.php?159467-CP318-4-Taking-a-Look-at-the-Sheet-Set-Object-With-VB-NET

and

Populating a tree view inside AutoCAD with sheet set data using .NET - Part 2 by Kean Walmsley
http://through-the-interface.typepad.com/through_the_interface/2010/05/populating-a-tree-view-inside-autocad-with-sheet-set-data-using-net-part-2.html

Modify the codes to write values to Custom Property and Sheet View. All is well after limited testing, only problem is , right after the code sets a value to "AcSmSheetView" the user needs to pick the refresh button on the Model Views tab under sheet set manager, there are times  Autocad crashes if they don't, but only when you try to "Rename & Renumber" the sheet view item, its all good when refresh is clicked.

This only happens with Vanilla cad, Never had that problem in Civil 3D.

That is the reason why i need a "refresh" function.

Navigation

[0] Message Index

[*] Previous page

Go to full version