I have been fiddling a bit in the C++ -> VB conversion of the Lines.cpp project and have found interesting things.
I have made the ShowSmallRefFrame() method to display the small ref. frame at the bottom left of the screen.
Here is what I get initially. So it does show up when ShowSmallRefFrame() is called. This is called immediately after creating the ChildWindow and associated AxKCad control.
However, when I UpdateSurface() after adding any number of sections, only the names of the axes remain as shown below:
ShowSmallReFrame() appears below. I guess I must be missing one or two parameter calls somewhere ... any hint on this (this is really cool) ?
Code: Select all
Sub ShowSmallRefFrame(ByRef IDesWin As Int32)
Dim iModel As IView = DirectCast(.AxKCad.GetView(), IView)
Dim iView As IView = iModel
Dim iContext As IKCContext = iView
iContext.SetBoolParam (19, True)
Dim iPropArray As IPropertyArray = iView
Dim iContextAxes As IKCContext = iPropArray
iContextAxes.SetBoolParam (1, True) ' Solid
iContextAxes.SetDoubleParam(1, 2.0) ' Make twice the default size End With