Creating a Sheet Folder using API

Creating a Sheet Folder using API

Anonymous
Not applicable
654 Views
2 Replies
Message 1 of 3

Creating a Sheet Folder using API

Anonymous
Not applicable

I've managed to create sheets as needed using ViewSheet.Create.  However, I would like to group them together using a folder, like these examples:

 

capture.png

 

How does one create a sheet folder, which I assume can then be designated as the parent for newly created sheets using an ID, possibly .GroupId ?

0 Likes
655 Views
2 Replies
Replies (2)
Message 2 of 3

Sean_Page
Collaborator
Collaborator

You would need to have a "Sorting" Project Parameter applied to the Sheet Category. Once you have that, it should be then available to select in the Project Browser Organization settings.

 

spage_0-1633550450177.png

 

Then all you need to do is set that parameter, generally Text, from any application call when creating the sheets.

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
Message 3 of 3

TerryDotson
Mentor
Mentor

My request showed my lack of experience with Revit.  I discovered by iterating over the sheet collection "BuiltInCategory.OST_Sheets" there are only two sheets and there is no such thing as a sheet folder.  In my graphic, A1 & A2 are the only two "Sheets" and the remaining child items are "Detail Views" that are assembled on the sheets.

 

So this becomes a wish list item, the ability to group multiple sheets under a new object (sheet folder).  This would help the organization of the tree as potentially dozens of sheets could be collapsed into a single folder.

0 Likes