I have door instance(q) and then I want get a wall host.
Need get a width of this wall.
what is wrong?
Element wallhost = q.Host; double width = wallhost.get_Parameter(BuiltInParameter.WALL_ATTR_WIDTH_PARAM).AsDouble();
Solved! Go to Solution.
Solved by FAIR59. Go to Solution.
Nothing. Looks perfectly fine to me.
don't know where is problem
also
this work .....but don't know after wrote symbol. the visual studio 2015 offer me get_Parameter function.....in sharpdevelop doesn't...
double sirka = q.Symbol.get_Parameter(BuiltInParameter.DOOR_WIDTH).AsDouble();
the Wall-instance doesn't have a BuiltInParameter.WALL_ATTR_
Wall wallhost = q.Host as Wall; WallType wallType = wallhost.WallType; double width = wallType.get_Parameter(BuiltInParameter.WALL_ATTR_WIDTH_PARAM).AsDouble();
thanks ...that work..
Btw....where can I find this information- what is instance(familyinstance) and what not ?
thx.