Save value to model

Save value to model

Anonymous
Not applicable
796 Views
4 Replies
Message 1 of 5

Save value to model

Anonymous
Not applicable

Are there any paremeters available through the API similar to the Autocad system variable USERI1? I need to save a value to the model that I can check. Thanks.

0 Likes
Accepted solutions (1)
797 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

I'm working throught the Lab4_4_1_PerDocParams per this post...

 

Defining a New Parameter

 

But it's outdated. Is there a more recent example? Thanks. 

0 Likes
Message 3 of 5

arnostlobel
Alumni
Alumni
Accepted solution

Revit has the Extensible Storage API to support storing user's data in a model. It is quite a powerful API. You should check it out in the SDK. I believe there are samples too.

 

Arnošt Löbel

Autodesk Revit R&D

Arnošt Löbel
0 Likes
Message 4 of 5

Anonymous
Not applicable

I'll look into that. But for the time being, since I only needed to store one value, I used BuiltInCategory.OST_ProjectInformation.

0 Likes
Message 5 of 5

arnostlobel
Alumni
Alumni

You asked for the way of storing a user’s values in a Revit model, hence my answer. If you do not actually need it, that’s ok. Using shared parameters is fine as long as you are OK with the limitations of that technique.

 

Cheers

 

Arnošt Löbel

Revit R&D

Arnošt Löbel
0 Likes