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.