Sheet Parameter - BuiltInParameter.SHEET_COLLECTION_NAME is null for all Sheets

Sheet Parameter - BuiltInParameter.SHEET_COLLECTION_NAME is null for all Sheets

Sean_Page
Collaborator Collaborator
540 Views
7 Replies
Message 1 of 8

Sheet Parameter - BuiltInParameter.SHEET_COLLECTION_NAME is null for all Sheets

Sean_Page
Collaborator
Collaborator

According to the SDK, there is a new BIP SHEET_COLLECTION_NAME parameter that I assume should give us the Collection Name, but when I attempt to use it in a PVP or get retrieve the value, it is always null.

 

Is there a reason why this parameter wouldn't be working or providing a value?

 

Also, it does not show up in RevitLookup.

Sean_Page_0-1735573204271.png

 

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
Accepted solutions (1)
541 Views
7 Replies
Replies (7)
Message 2 of 8

ricaun
Advisor
Advisor

The parameter in the image is a Integer.

 

AsString should return null because is the wrong type. The AsValueString return Yes, probably this parameter is a Yes/No.

ricaun_0-1735573966049.png

 

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 8

Moustafa_K
Collaborator
Collaborator

My understanding of sheet collection, is when you create a group to hold certain sheets. accessed from UI via right click, and choosing new sheet collection. however, the feature and the value seems working fine on my end.. I hope i didn't miss understood your question

Moustafa_K_0-1735574109087.png

 

 

verifying that via snoop

Moustafa_K_1-1735574217969.png

 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Message 4 of 8

Sean_Page
Collaborator
Collaborator

@ricaun, I was using the image to show the Sheet Collection Name parameter wasn't in the list.

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

Sean_Page
Collaborator
Collaborator

@Moustafa_K,

Yes, the collection themselves are working fine, but there is a Built In Parameter that is supposed to return the Name of the collection and that parameter doesn't seem to be working as it returns "null" like it isn't found.

 

Sean_Page_0-1735575072532.png

 

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

Moustafa_K
Collaborator
Collaborator

I just tried from C#

sheetView.get_Parameter(BuiltInParameter.SHEET_COLLECTION).AsValueString()

seems working fine still.

 

but yes SHEET_COLLECTIONNAME  returns null indeed

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Message 7 of 8

ricaun
Advisor
Advisor
Accepted solution

Is not showing because the SHEET_COLLECTION_NAME is not supported in that element type, the category sheet I guess.

 

I suppose the SHEET_COLLECTION_NAME parameter is used in the SHEET_COLLECTION element.

 

Snoop the SHEET_COLLECTION and check if is in there.

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

Message 8 of 8

Sean_Page
Collaborator
Collaborator

Boo, and duh all at the same time. Well, I would argue that it should be available on the sheet as well 🙂

 

Thanks Luiz!

Sean_Page_0-1735577400254.png

 

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect