Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shared parameter from typeId

0 REPLIES 0
Reply
Message 1 of 1
esatis
115 Views, 0 Replies

Shared parameter from typeId

esatis
Advocate
Advocate

Hi, 

when getting TypeId from shared Parameter I get this value: revit.local.shared:4c9f98a19df44a2d80288eb88f9c5a59-1.0.0
But is it possible to get Shared Parameter value back from the TypeId ?
I use this to get parameter value from BuiltIn Parameters TypeId. 

private static string GetParameterValueFromForgeTypeId(string parameterTypeId)
{
string parameterValue = "";
ForgeTypeId parameterForgeTypeId = new ForgeTypeId(parameterTypeId);		
Parameter parameter = _element.GetParameter(parameterForgeTypeId);

if (parameter != null)
 parameterValue = parameter.AsValueString();					

return parameterValue;
}

I know that I can get shared parameter value from GUID, but the value revit.local.shared:4c9f98a19df44a2d80288eb88f9c5a59-1.0.0 almost seems as unique as GUID. maybe I can skip the GUID and get the value somehow from this TypeId ? 
Thanks!

0 Likes

Shared parameter from typeId

Hi, 

when getting TypeId from shared Parameter I get this value: revit.local.shared:4c9f98a19df44a2d80288eb88f9c5a59-1.0.0
But is it possible to get Shared Parameter value back from the TypeId ?
I use this to get parameter value from BuiltIn Parameters TypeId. 

private static string GetParameterValueFromForgeTypeId(string parameterTypeId)
{
string parameterValue = "";
ForgeTypeId parameterForgeTypeId = new ForgeTypeId(parameterTypeId);		
Parameter parameter = _element.GetParameter(parameterForgeTypeId);

if (parameter != null)
 parameterValue = parameter.AsValueString();					

return parameterValue;
}

I know that I can get shared parameter value from GUID, but the value revit.local.shared:4c9f98a19df44a2d80288eb88f9c5a59-1.0.0 almost seems as unique as GUID. maybe I can skip the GUID and get the value somehow from this TypeId ? 
Thanks!

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report