ObjectArx Experience
-
Does anyone have ObjectArx(for Autocad2000) Experience. Considderd to be the worlds fastest knoppenbonker. 10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). And experience with the one and only NewEra Guru.
-
Does anyone have ObjectArx(for Autocad2000) Experience. Considderd to be the worlds fastest knoppenbonker. 10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). And experience with the one and only NewEra Guru.
Yes, I have experience with ObjectARX for AutoCAD 2000. I made some applications with it, mixing ATL and ObjectARX code most of the time.
-
Yes, I have experience with ObjectARX for AutoCAD 2000. I made some applications with it, mixing ATL and ObjectARX code most of the time.
Do you have any experience on how to add a toolbar to the autocad frame(with same look and feel as autocad have). I know there is a activeX object which you can use, but I can't add any Combobox to the toolbar with it(only normal buttons and seperators). Do you have any idea. Thanks in advance I'm happy, that I'm not the only OARX programmer around(where are you from) Considderd to be the worlds fastest knoppenbonker. 10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). And experience with the one and only NewEra Guru.
-
Do you have any experience on how to add a toolbar to the autocad frame(with same look and feel as autocad have). I know there is a activeX object which you can use, but I can't add any Combobox to the toolbar with it(only normal buttons and seperators). Do you have any idea. Thanks in advance I'm happy, that I'm not the only OARX programmer around(where are you from) Considderd to be the worlds fastest knoppenbonker. 10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). And experience with the one and only NewEra Guru.
Yup. Just use a normal CToolbar. Parent it to AutoCAD's main frame window. You may need to create an invisible CWnd to act as message target for button presses. The CToolbar will not dock alongside one of AutoCAD's toolbars. I spent a long time trying to get this to work, together with ADN support, and didn't get anywhere. If you are able to, please let me know! However, the toolbar will dock underneath the existing toolbars, or on either side or bottom of the frame. Looks OK in practice. Here's some code. It's copied and pasted, and as it's not in any context, it won't build, but it might give you an idea.
CMDIFrameWnd\* const pAcadFrame = acedGetAcadFrame(); //----- Add the ToolBar myToolBarP = new ZbUiToolBar(myPartManagerP); BOOL res = myToolBarP->CreateExAndLoad( pAcadFrame, TBSTYLE\_FLAT /\*| TBSTYLE\_TRANSPARENT\*/ | TBSTYLE\_TOOLTIPS, WS\_CHILD | WS\_VISIBLE | CBRS\_SIZE\_DYNAMIC | CBRS\_TOP | CBRS\_GRIPPER | CBRS\_BORDER\_TOP | CBRS\_BORDER\_BOTTOM ); myToolBarP->EnableDocking( CBRS\_ALIGN\_ANY ); myToolBarP->SetBorders(3, 3, 3, 3); myToolBarP->RestorePosition(/\*NOXLATE\*/"DCUBED.OPSToolbar");
and here's the code for CreateExAndLoad:
BOOL ZbUiToolBar::CreateExAndLoad(CWnd* pParentWnd,
DWORD dwCtrlStyle,
DWORD dwStyle,
CRect rcBorders,
UINT nID)
{
BOOL status = true;
if (status)
{
status = myToolBarWndP->Create(NULL, NULL, WS_CHILD | WS_MINIMIZE, CRect (0,0,1,1), pParentWnd, 10) ;
}if (status) { status = CreateEx(pParentWnd,dwCtrlStyle,dwStyle,rcBorders,nID); } if (status) { status = LoadToolBar( GetResourceId() ); //status = LoadBitmap( GetResourceId() ); OPS\_ASSERTMSG(status,"Failed to load bitmap from resource."); } if (status) { LayoutButtons(); SetWindowText(getBarWindowText()); } DWORD const toolBarStyle = GetStyle(); DWORD const toolBarDblClk = toolBarStyle & CS\_DBLCLKS; OPS\_ASSERTMSG(toolBarDblClk != 0,"ToolBar does not support 'CS\_DBLCLKS' style."); if (status) { GetToolBarCtrl().SetOwner( myToolBarWndP ); } return status; }
Hope this helps, Chris Brown D-Cubed Ltd.
-
Yup. Just use a normal CToolbar. Parent it to AutoCAD's main frame window. You may need to create an invisible CWnd to act as message target for button presses. The CToolbar will not dock alongside one of AutoCAD's toolbars. I spent a long time trying to get this to work, together with ADN support, and didn't get anywhere. If you are able to, please let me know! However, the toolbar will dock underneath the existing toolbars, or on either side or bottom of the frame. Looks OK in practice. Here's some code. It's copied and pasted, and as it's not in any context, it won't build, but it might give you an idea.
CMDIFrameWnd\* const pAcadFrame = acedGetAcadFrame(); //----- Add the ToolBar myToolBarP = new ZbUiToolBar(myPartManagerP); BOOL res = myToolBarP->CreateExAndLoad( pAcadFrame, TBSTYLE\_FLAT /\*| TBSTYLE\_TRANSPARENT\*/ | TBSTYLE\_TOOLTIPS, WS\_CHILD | WS\_VISIBLE | CBRS\_SIZE\_DYNAMIC | CBRS\_TOP | CBRS\_GRIPPER | CBRS\_BORDER\_TOP | CBRS\_BORDER\_BOTTOM ); myToolBarP->EnableDocking( CBRS\_ALIGN\_ANY ); myToolBarP->SetBorders(3, 3, 3, 3); myToolBarP->RestorePosition(/\*NOXLATE\*/"DCUBED.OPSToolbar");
and here's the code for CreateExAndLoad:
BOOL ZbUiToolBar::CreateExAndLoad(CWnd* pParentWnd,
DWORD dwCtrlStyle,
DWORD dwStyle,
CRect rcBorders,
UINT nID)
{
BOOL status = true;
if (status)
{
status = myToolBarWndP->Create(NULL, NULL, WS_CHILD | WS_MINIMIZE, CRect (0,0,1,1), pParentWnd, 10) ;
}if (status) { status = CreateEx(pParentWnd,dwCtrlStyle,dwStyle,rcBorders,nID); } if (status) { status = LoadToolBar( GetResourceId() ); //status = LoadBitmap( GetResourceId() ); OPS\_ASSERTMSG(status,"Failed to load bitmap from resource."); } if (status) { LayoutButtons(); SetWindowText(getBarWindowText()); } DWORD const toolBarStyle = GetStyle(); DWORD const toolBarDblClk = toolBarStyle & CS\_DBLCLKS; OPS\_ASSERTMSG(toolBarDblClk != 0,"ToolBar does not support 'CS\_DBLCLKS' style."); if (status) { GetToolBarCtrl().SetOwner( myToolBarWndP ); } return status; }
Hope this helps, Chris Brown D-Cubed Ltd.
From autodesk i got an answer which is: Hi, I am afraid it is not possible at all. AutoCAD toolbar are not standard toolbars. If you need a combobox, you do not have any other choices than using MFC toolbars. Cheers, Cyrille Fauvel autodesk Considderd to be the worlds fastest knoppenbonker. 10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute). And experience with the one and only NewEra Guru.