Reading family parameter values without an instance

Reading family parameter values without an instance

adam.krug
Advocate Advocate
637 Views
4 Replies
Message 1 of 5

Reading family parameter values without an instance

adam.krug
Advocate
Advocate

Hello,

 

Let's assume I have such family tree in my project:

 

Family A

   Type A1

   Type A2

   Type A3

Family B

   Type B1

   Type B2

 

The families are not system families (they are editable). I wan't to check what is the value of Family Parameter XYZ (let's assume it's a YesNo type parameter) of each type of these families. Can I do that without having to make an instance of each or going into EditFamily mode and looping through types? How?

0 Likes
638 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Dear Adam,

 

If you are lucky, the part atoms will give you all you need:

 

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

adam.krug
Advocate
Advocate

Dear Jeremy,

 

This method requires having my families as .RFA files. I want to work within the project environment on families loaded in it. I'd like to avoid saving the families as external files.

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

Dear Adam,

 

All the information that you can access via the API is the project environment is also interactively navigable using RevitLookup.

 

If you cannot access it using RevitLookup, EditFamily is the only other choice in this situation, afaik.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 5

adam.krug
Advocate
Advocate

Thanks Jeremy,

 

I will try RevitLookup to see how it can help.

 

Cheers,

Adam

0 Likes