Last day of October and that could only mean one thing, trick-or-treaters are making their rounds in NYC, looking for delicious candy and also the creativity can be seen on many costumes around the streets of the city. I haven’t dressed for today’s festivities yet but on my next post I will share what I end up doing for tonight. For now I will share a black and white aerial picture of Manhattan ( to make it a bit spooky, perhaps ?). Hope you guys like it.
Back to Revit, This week I want to give a shout out to one of our API experts, Aaron who recently rejoined the DevTech China team and got to work on a great case this past week. Thank you Aaron and glad to have you back.
Question: Given an Element object in the C# API, is there a simple way to find Project Parameters that are associated with that Element? Thanks.
Aaron Answer:Given an Element, when you iterate it's parameter, you can check some properties of the parameter to determine if it is a project or shared parameter, please see below example code:
//this is a shared parameter
InternalDefinition def = parameter.Definition as InternalDefinition;
if (def != null)
if (def.BuiltInParameter == BuiltInParameter.INVALID)
// this is a project parameter
Hope it helps, thanks.
Response:Thanks, Aaron,This helps.
Thank you Aaron for such a simple but also awesome way to solve this.
Thank you for reading and until next time.