Need help with Element.Parameter

Im trying to get access to information listed by the element.parameters list. [8] Workset : to be exact… (image below)

But it keep giving me these…

ElementParamater2 And Im pretty sure I dont know what Im doing here… So pointing me to the right direction will be appreciated.

Thank you Vikram. IndexOf is the key. That worked beautifully

How would you loose the "Workset : " part? Without having to remove a number of characters.

If you’re actually trying to querry the name of the workset I reccomend using two nodes in the Clockwork package:

  • Element.Workset which returns the actual Revit DB value of the workset which the element is in.
  • Element.Name (Universal) which returns the name of pretty much anything.

If you’ve otherwise pulled the correct values as a string via another method I’d either go with a String.Replace node where you replace the "Workset : " portion of the string with an empty string. No need to count characters that way.

1 Like