Is it possible to give many entities of same schema to one element in EStorage?

Is it possible to give many entities of same schema to one element in EStorage?

1120415118
Enthusiast Enthusiast
1,006 Views
2 Replies
Message 1 of 3

Is it possible to give many entities of same schema to one element in EStorage?

1120415118
Enthusiast
Enthusiast

I have some list datas need to store in the element by EStorage. For ease of management, I want to respectively store in the form of entity with filed of one value, just like Object-Oriented Programming, but I don't know if this is feasible for setting many entities of same schema to one element, and if it's possible, whether storage in this way has a Max number, which means how many entities it can contain.

 

I will appreciate for your reply.

0 Likes
Accepted solutions (1)
1,007 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

If you want to store the same data on numerous different elements, I would suggest defining some globally accessible location for the data object and just storing pointers to that on the individual elements that need to reference it.

 

Here are some other articles on extensible storage:

 

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

 

Please also search for existing answers before submitting a new thread to the forum.

 

Here is a recent discussion that addresses a very similar question:

 

https://forums.autodesk.com/t5/revit-api-forum/best-practise-to-optimize-extensible-storage-function...

 

Happy New Year!

 

Jeremy

 



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

Message 3 of 3

1120415118
Enthusiast
Enthusiast

Thanks, Jeremy, and Happy New Year!

I will keep in mind of your suggestions.

0 Likes