Hi,
We have just tested a piece code that mimics your scenario and it works fine. Here it is, try it out:
CustomCompositeShape compositeShape = new CustomCompositeShape();
document.ActiveLayer.AddChild(compositeShape);
compositeShape.Initialize();
compositeShape.Location = new NPointF(100, 100);
...
[Serializable]
public class CustomCompositeShape : NCompositeShape
{
public void Initialize()
{
NBasicShapesFactory factory = new NBasicShapesFactory();
factory.DefaultSize = new NSizeF(100, 100);
NShape shape1 = factory.CreateShape(BasicShapes.Rectangle);
shape1.Compose(this);
NShape shape2 = factory.CreateShape(BasicShapes.Circle);
shape2.Location = new NPointF(100, -50);
shape2.Compose(this);
UpdateModelBounds();
}
}
Best Regards,
Nevron Support Team