Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make a design option primary #213

Closed
dynolivar opened this issue Aug 3, 2023 · 5 comments
Closed

make a design option primary #213

dynolivar opened this issue Aug 3, 2023 · 5 comments

Comments

@dynolivar
Copy link

Im using the orchid nodes, and im using also a python script to set a design option to primary.
My issue with all the information can be found here: https://forum.dynamobim.com/t/make-a-design-option-primary/92485
software version:
Revit: 2021.1.5
Dynamo Core: 2.6.1.8786
Dynamo Revit 2.6.1.8850
Orchid: 206.6.0.5842

The issue

see this link: https://forum.dynamobim.com/t/make-a-design-option-primary/92485

@erfajo
Copy link
Owner

erfajo commented Aug 10, 2023

I don't participate in the dynamobim forum...

@dynolivar
Copy link
Author

dynolivar commented Aug 14, 2023

Hi @erfajo ,

I understand. I also solved some issue's within the custom python node. Im trying to write a graph to set a non primary design option to primary. But i reached a dead end... Im using the orchid nodes for input. Could you please help me out?

Could you please help me out?

graph with error:
image

file:
make designoption primary - dynamo graph (2023).zip

@erfajo
Copy link
Owner

erfajo commented Aug 14, 2023

I am not aware if there exists any option to set DesignOption as primary, and I cant find any documentation that something like this exists.

I can see that you have tried to write your own method

# Function to set the primary design option
def set_primary_design_option(option_set, option):
    try:
        option_set.SetPrimary(option)
        return True
    except:
        return False

but I dont know where you have found "SetPrimary(option)", I cant find it in the documentation for the Revit api.

@dynolivar
Copy link
Author

that makes sense now.. I got this recommended from a colleague. thank you for your help though. It's a pity that the revit api documentation does not offer a method to set a option to primary.

@erfajo
Copy link
Owner

erfajo commented Aug 14, 2023

I agree, there are so many things that still are hidden for users/codes by Autodesk... this is just one of the things :-S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants