Yes, it is a bit strange when ShapeElement, Text & Dimension Element in DgnPlatformNet whereas Solid Element are not included. May I have your comment on creating a 5x6x2(H) box?
I could not understand why a box requires baseX, baseY etc but no Z are defined. A box which has an X and Y, why it needs a baseX and topX? So that's why I want to see an example to learn how to use those parameters.
public static void Slab() { DgnModel oModel = Session.Instance.GetActiveDgnModel(); DPoint3d baseOrigin = new DPoint3d(0, 0, 0); DPoint3d topOrigin = new DPoint3d(0, 0, 2); DVector3d vectorX = new DVector3d(1, 1, 0); DVector3d vectorY = new DVector3d(1, 1, 0); double baseX = 5; double baseY = 6; double topX = 5; double topY = 6; DgnBoxDetail odata = new DgnBoxDetail(baseOrigin, topOrigin, vectorX, vectorY, baseX, baseY, topX, topY, true); SolidPrimitive sample = SolidPrimitive.CreateDgnBox(odata); Element oElement = DraftingElementSchema.ToElement(oModel, sample, null); oElement.AddToModel(); }