Hello,
the ARX-function acedDragGen is causing some misbehaviour in ARX version 2015.
If the selected visual style is 2D-Wireframe everything works fine. But with every other style the objects could not be seen while the dragging is in process. After that process the objects appear on the workspace. The function call does not return in an exception or an error.
We use acedDragGen frequently in our application and we are looking urgently for a workaround!
Any idea is more than welcome!
Beneath are some example code lines on how we tried to use it. Are we missing something or is this an existing and maybe still unknown bug?
ads_point base_Pt; // callback static int dragGenCallback(ads_point pt,ads_matrix mat) { AcGeVector3d vector(pt[0]-base_Pt[0],pt[1]-base_Pt[1],pt[2]-base_Pt[2]); AcGeMatrix3d matrix; matrix.setToTranslation(vector); for(int i=0;i<4;i++) { for(int k=0;k<4;k++) mat[i][k]=matrix(i,k); } return RTNORM; } // function static void drag() { ads_name ss; // entities acedSSGet(NULL,NULL,NULL,NULL,ss); // dragpoint acedGetPoint(NULL, L"Select Point", base_Pt); long len; acedSSLength(ss,&len); //mode set for(int i=0;i<len;i++) { ads_name ent; acedSSName(ss,i,ent); acedRedraw(ent,3); //highlight } ads_point final_pt; // acedDragGen acedDragGen(ss, L"Drag Me", 0, dragGenCallback, final_pt); //mode restore for(int j=0;j<len;j++) { ads_name ent; acedSSName(ss,j,ent); acedRedraw(ent,1); } }
If you need any additional assistance on this case, please contact me.
Yours faithfully,
Daniel Nitsche
This appears to be a bug. We have logged it and will work on a fix for a future release.
Our testing group has not been able to reproduce this - acedDragGen works fine in all Visual Styles.
One thing that came up is have you tried turning off hardware acceleration in Acad? If the issue has to do with your graphics card turning off hardware acceleration might make a difference.
If turning off hardware acceleration makes no difference, then could you tell me your OS and graphics card, and could you send me a full sample project (i.e. source and vcxproj files) and steps to follow to reproduce exactly what you are doing so that we can be sure we are doing the same thing that you are?
You can send this to my email address which is artc@autodesk.com