I am relatively new to kernelcad
I get a feeling that IView2.ResetEx() doe snot take into account objects created with IStdShape. I use:
Code: Select all
IModel* iModel = (IModel*)m_kc.GetModel();
ISection *iSect1, *iSect2; iSect1 = iSect2 = NULL;
IStdShape* iStd = NULL;
iModel->QueryInterface(IID_IStdShape, (void**)&iStd);
iStd>Box(2000, 1000, 100, &iSect1);
IView2* Iview2 = (IView2*)m_kc.GetView();
Iview2->ResetEx(eViewResetAll);
m_kc.UpdateSurface();
m_kc.UpdateView();
After executing this the box does not fit the window. It works OK if I select view > reset in the right click menu manually
Am I doing something wrong?
Thank You
Salman