Create Data for Family

Create Data for Family

David_Robison
Advocate Advocate
640 Views
3 Replies
Message 1 of 4

Create Data for Family

David_Robison
Advocate
Advocate

Is it possible to create data for a family, and not for a family type?

 

Using FamilyManager I can add a shared parameter for each type in a family. I want to go one level higher and set data that is common for all types in the family.

 

The goal is to be able to open the family, set a value there, then insert the family in a project and be able to retrieve that value. The value should be the same for the family no matter what type is selected.

0 Likes
Accepted solutions (1)
641 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear David,

 

Thank you for your query.

 

Shared parameters can only be attached to elements belonging to certain categories.

 

I am not sure that the scenario that you describe makes much sense when you limit the scope to shared parameters.

 

Why do you do that?

 

If you are just interested in data in general, and you just want to manage it for and access it by your own add-in, then I would always recommend extensible storage over shared parameters:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23

 

You might want to digest the discussion on accessing extensible storage on OwnerFamily in project:

 

http://thebuildingcoder.typepad.com/blog/2014/08/accessing-extensible-storage-on-ownerfamily-in-proj...

 

That might be just what you are after.

 

I hope this helps.

 

Best regards,

 

Jeremy



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

Message 3 of 4

David_Robison
Advocate
Advocate

Thanks. Document.OwnerFamily is what I was looking for. I am using extensible storage as much as possible. I just couldn't figure out where to put it so it would be properly found when the family was inserted in a project.

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Cool. Glad to hear it!



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

0 Likes