Hi,
I have two list boxes. I want to poulate one with names of elements which requires streching like a wall. A wall can't be placed with a single click. The other list box I want to populate with elements which does not require streching like a plant or a furniture which can be placed with a single click.
Thanks & Regards
What do you mean by "list box", and what is the question or problem? It's not clear.
Then, please specify that you are referring to API. It is hard to guess if you don't mention it and you post your question in the Revit Architecture forum. I suggest to move this thread to the API forum.
Take a look at an elements location property. It will return either a LocationPoint or a LocationCurve. Probably easiest to setup 2 helper functions like this:
Function IsPointBased(element As Element) As Boolean Return TryCast(element.Location, LocationPoint) IsNot Nothing End Function
Function IsLineBased(element As Element) As Boolean Return TryCast(element.Location, LocationCurve) IsNot Nothing End Function
Hope that helps,
Brett