Please help!

Please help!

Anonymous
Not applicable
486 Views
2 Replies
Message 1 of 3

Please help!

Anonymous
Not applicable
I want to handle double click event for line entity in my arx application for AutoCAD 2010. Previously there was dblclick sample with ARX for AutoCAD 2007. But in AutoCAD 2010 ARX i am not able to find this sample and also help regarding AcDbDoubleClickEdit class. Can anybody help me regarding the same. It's urgent.
I have already posted one thread with subject "AcDbDoubleClickEdit not working!" regarding the same, but there nobody responded.
0 Likes
487 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
did you ever get a resolution to this issue AcDbDoubleClickEdit::rxInit() unresolved?
0 Likes
Message 3 of 3

cadMeUp
Collaborator
Collaborator
try adding this to your 'InitApplication' function:

// Load the Double Click Arx Module...
if(!acrxDynamicLinker->loadModule(/*MSG0*/"ACDBLCLKEDITPE.ARX",Adesk::kFalse)) {
AfxMessageBox("'ACDBLCLKEDITPE.ARX' Load Failed");
return ;
}


That arx module has to loaded for it to work, I believe.
It was part of the original sample:

// Init this application. Register your
// commands, reactors...
void InitApplication()
{
// NOTE: DO NOT edit the following lines.
//{{AFX_ARX_INIT
//}}AFX_ARX_INIT

// Load the Double Click Arx Module...
if(!acrxDynamicLinker->loadModule(/*MSG0*/"ACDBLCLKEDITPE.ARX",Adesk::kFalse)) {
AfxMessageBox("'ACDBLCLKEDITPE.ARX' Load Failed");
return ;
}

// Initialize Double Click Editing
AcDbDoubleClickEdit::rxInit();

// Initialize for Spline...
AcDbDoubleClickEditSpline *pSplineEdit=new AcDbDoubleClickEditSpline;
AcDbSpline::desc()->addX(AcDbDoubleClickEdit::desc(),pSplineEdit);

// Initialize for Pline...
AcDbDoubleClickEditPline *pPlineEdit=new AcDbDoubleClickEditPline;
AcDbPolyline::desc()->addX(AcDbDoubleClickEdit::desc(),pPlineEdit);

// Intialize for Circle...
AcDbDoubleClickCircle *pCircleEdit=new AcDbDoubleClickCircle;
AcDbCircle::desc()->addX(AcDbDoubleClickEdit::desc(),pCircleEdit);

// Message for Sample Usage
AfxMessageBox("Double-Click Editing API Sample:\nDouble Click 'Pline' and 'Spline' Entities to Add Vertexes,\nDouble Click 'Circle' to Cycle Color.");
}

Hope it works!
0 Likes