0

Is it possible to associate directshape element with level? I've tried to manually insert it by parameter, but there is no level parameter in parameters, and setting level directly doesn't work because its a read only. Is there any other way that I can achieve this? Ideally I would like to be able to associate the created directshape into a level, if it is not possible, a string textfield would also do.

DirectShape ds = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));
ds.SetShape(brepBuilder);
ds.LookupParameter("Level").Set(levelID); //<- any alternative....?
ds.LevelId = levelID; // <- this also didnt work. 

1 Answers1

0

Afaik, the Level property can only be set during the creation of an element, e.g., in the Wall.Create method taking a level id argument.

Jeremy Tammik
  • 7,333
  • 2
  • 12
  • 17