Get Parameter from ExternalDefinition

its possible?

for example like this : ExternalDefinition**.OwnerParameter**

Hi @til.shviger

1 Like

Really ??? Its possible ?

@Kulkul

type of Wall Area and SurfaceArea - its String or Parameter ?

because of im exactly try to get ParameterElement:
http://www.revitapidocs.com/2017.1/2ad60b36-07d6-6aed-62c7-89f388f05ffb.htm

operation marked as red arrow - its possible

reverse operation marked as blue arrow - its may be impossible …

image

Like this:

i have only ExternalDefinition element
i try get ParameterElement from ExternalDefinition because of i want to get

BiltInParameter and StorageType

its items is not exist for ExternalDefinition…
but for ParameterElement they are exist…

Unfortunately it is not possible :frowning:

1 Like

thank you Kulkul .
I know about it now

:point_up:

Once more question

If i have
ParameterType
http://www.revitapidocs.com/2017.1/f38d847e-207f-b59a-3bd6-ebea80d5be63.htm

can i get

StorageType
http://www.revitapidocs.com/2017.1/3dbebcb8-792b-a3dd-fe63-faaa05704f3c.htm

I mean exactly is there a connection between them ?

a small example I found here:

but its not the full list of ParameterType

i think solved

but looks like its not a full list too (

The answer to the latter is apparently YES as each Parameter has both a StorageType and a ParameterType. As far as the first question is concerned, the enumeration value itself is pretty explanatory, e.g. Length representing some linear measure, YesNo meaning a Boolean value, Material indicating a material reference, etc. In addition, obviously each StorageType value can map to multiple ParameterType values, but it is not obvious in the API or the Revit itself which StorageType value maps exactly to what ParameterType values.