IView2.ResetEx() issue

Forum for reporting problems
Post Reply
Salman
Posts: 1
Joined: Tue Nov 11, 2014 8:02 pm

IView2.ResetEx() issue

Post by Salman »

Hi
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();
It is the latest v4.3
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

Post Reply