Appears in sheetlist

Appears in sheetlist

vanlion
Advocate Advocate
803 Views
4 Replies
Message 1 of 5

Appears in sheetlist

vanlion
Advocate
Advocate

Hello,

 

I'm looking for the parameter: appears in sheetlist. But i can't find it when you do a viewsheet filtered collector.

 

Anyone An idea how it's called or accessible?

 

Thanks

 

0 Likes
Accepted solutions (2)
804 Views
4 Replies
Replies (4)
Message 2 of 5

BardiaJahan
Advocate
Advocate
Accepted solution

Try to get this parameter:

 

BuiltInParameter.SHEET_SCHEDULED

0 Likes
Message 3 of 5

vanlion
Advocate
Advocate

Hi BardiaJahan,

 

Thanks. That's the one i was looking for.

I receive the value as Yes or No with the part underneath: 

 

get_Parameter(BuiltInParameter.SHEET_SCHEDULED).AsValueString();			

 but if i want to set the value with "Yes" or "No" received from my checkbox it doesn't work:

get_Parameter(BuiltInParameter.SHEET_SCHEDULED).Set("my result from checkbox");

Do you know if it must be a string parameter or a bool? when i try a bool i get the error:

cannot convert bool to Autodesk.Revit.DB.ElementId

 

Thanks!

 

 

0 Likes
Message 4 of 5

BardiaJahan
Advocate
Advocate
Accepted solution

StorageType of Boolean (Yes/No) parameters in Revit is actually integer. It means if you want to set the value of such parameter you should use 0 as No/False and 1 as Yes/True. Try casting the bool from checkbox to int.

0 Likes
Message 5 of 5

vanlion
Advocate
Advocate

Thanks!!!

 

You have made my day. Never thought of that but so easy 😉

0 Likes