Design Option Sets - Accept Primary

Hey folks! Has anyone been able to execute the ‘Accept Primary’ function via dynamo/python? I see a lot of documentation on how to change the primary option, but not how to accept it. Thanks for the help in advance!

Unfortunately, Revit API access is not currently available for this feature.

Feature Request: CF-66

References:
https://forums.autodesk.com/t5/revit-api-forum/expose-design-options-settings/td-p/6450298
https://forums.autodesk.com/t5/revit-api-forum/delete-designoptionset/td-p/5831338
https://forums.autodesk.com/t5/revit-api-forum/how-to-quot-accept-primary-quot-on-design-options-via-api/td-p/6043340

The workaround would be to copy the elements from the design option to your main model. This would require you to iterate thought all the elements within the primary design options.

See the archi-lab package by Konrad K Sobon

Reference:

Bummer! It seems like I can workaround it by (1) copying the elements into the main model [would I be able to SetParameterValue for the Design Option of the elements?], and (2) deleting the Option&Option Set. Is there a way to sequence that correctly so that the Option & Set aren’t deleted before the elements are copied?

Thanks for the response!

  1. No. This parameter is read-only

  2. Clockwork for Dynamo: Passthrough node
    or
    spring nodes: Input.Wait

1 Like