Context: RFA file?

Hello,
I searched this in multiple places already and I can’t seem to find a response:

Is there a Context setting already in pyRevit that would allow a tool to only run on family file environment? (RFA file)?

I am currently using the doc.IsFamilyDocument option right now to stop the tool from running, but it would be great to have the button grayed out on the ribbon.

Thank you!

I don’t think so, otherwise Ehsan would have implemented it on the “Cycle” tool.

2 Likes

I mean nothing is gonna stop us from adding that option :smiley: How about adding doc-family and doc-project as in:

context: doc-family
3 Likes

That would be great!! thank you! :+1:

1 Like

Done. Will be published with 4.8.6 soon :smiley:

2 Likes

Yes!! that was quick! :smiley:
thank you so much!

1 Like

Now this is me being greedy :sweat_smile:
But doesn’t everyone else see a benefit of creating Context for “workshared” files vs. “stand alone” files?
Would love for the buttons dealing with worksets to be turned off if the file is not workshared :slight_smile:

1 Like

Oh yeaaah! Great idea! I’ll add that as well

3 Likes

2 for 2… let’s go! :joy:
thanks!!

Advanced contexts implemented in 4.8.6

2 Likes

This is awesome! thank you so much! :smiley: :+1:

1 Like