catia

CATIA-CAA CATNavigBox Resize

Is it possible to change the size of the treeview window after it has been visualized? My code looks like this: _p2DNavViewer = NULL; _p2DNavViewer = new CATNavigation2DViewer(this, "", CATDlgFraNoTitle | CATDlgWndNoDecoration |CATDlgWndChildMDI |CATDlgFraNoFrame, _width, _height); _pNavigBox = new CATNavigBox(this, "", NULL, Ind...

CATIA-CAA CATKeyboardEvent

I know there are only a few CAA Programmers in the world but I try it anyway... I can't get keyboard events to work. I found this code which looks reasonable but the Notification doesn't fire. AddAnalyseNotificationCB(CATFrmLayout::GetCurrentLayout()->GetCurrentWindow()->GetViewer(), CATKeyboardEvent::ClassName(), (CATComma...

How to debug applications using COM interfaces?

I' building an application using C# which will use CATIA COM modules. When I import the COM inside my c# project, I think that Visual C# express generates the Interop automagically for me. All of this works correctly. However, when I try to debug the application and use watches during runtime, every object is a System.__ComObject and I ...

How to convert ZXZ rotation matrix to Euler angles?

I'm using Catia software. When I query the position of an object inside my CAD drawing, the system returns a 3x4 matrix [Rotations | Translations] I think that the Rotations are expressed in a ZXZ fashion but for further processing I'd like to convert that rotation matrix to a XYZ notation, is this something doable? Edit: My object ...

Macro in Delmia

Hi , I am programming some VBA macros in Delmia with interface to make easier the life of the user. I know, in Delmia, there is the option to "Start Recording" macro, then I can make some operation in delmia and see the code generated by these operations. But when I click, by example, on "Restore initial state". There is no code genera...

How to prevent an OpenGL application from drawing?

Hello everybody! How can i prevent an external OpenGL application(no sources available) from drawing like it can be done by GDebugger? The problem is Dassault Catia that opens complex models within five(!) hours because they are rendered while the loading is in process. When the border of this application is clicked and the mouse bu...