ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question regarding acedDragGen in ObjectArx 2015

2 REPLIES 2
Reply
Message 1 of 3
Daniel.Nitsche
442 Views, 2 Replies

Question regarding acedDragGen in ObjectArx 2015

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

2 REPLIES 2
Message 2 of 3
artc2
in reply to: Daniel.Nitsche

This appears to be a bug.  We have logged it and will work on a fix for a future release.

Message 3 of 3
artc2
in reply to: Daniel.Nitsche

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost