Set an Element's Design Option through the API

Set an Element's Design Option through the API

SHAWN.EIDEM
Explorer Explorer
286 Views
1 Reply
Message 1 of 2

Set an Element's Design Option through the API

SHAWN.EIDEM
Explorer
Explorer

Hello!

 

I'm trying to copy elements from one document into a design option in the active document through the API, and was wondering if there's a way to programmatically set the design option. Currently, the implementation I have forces the user to have the design option open and we copy from the source document into the open document which would set the design option that way, but that requires user intervention. Trying to set the design option/ design option parameter tosses an error at you stating that the field is read-only (which fits, from everything I've read online regarding design options).

 

Is there a way we can set the design options of these element copies or is this the best work around we can hope for until the API supports design options better? Maybe someone has a sneaky trick that works like magic? 

0 Likes
287 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Maybe you would care toi add your vote to the Revit Ideas wish list entry for a design option API?

  

https://forums.autodesk.com/t5/revit-ideas/design-options-api/idi-p/9590221

  

Whenever you require a new or enhanced Revit product or Revit API functionality, the Revit Idea Station is the place to go. Please search there for a corresponding wish list entry for the suggested functionality and add your comments to it, or create a new one, if none already exists. Ensuring that a wish gets as many votes as possible helps underline its importance to you and the rest of the developer community. The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements. The Revit development team looks there. Your comment here in the discussion forum might be overlooked.

  

Thank you!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open