Using acedDragGen with AcDbEntity derived class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm having trouble using acedDragGen to translate a custom AcDbEntity derived class.
- The assumption I've made is that acedDragGen transforms its selection set using acedXformSS (or in a similar) ;
- My solution was to implement subTransformBy in my custom class;
- The problem is that subTransformBy is not getting called.
My callback (scnf) function constructs a translation matrix and returns RTNORM.
I've also overridden subCloneMeForDragging and subHideMeForDragging to see if they are being called and I've found they are both being called (even if subCloneMeForDragging returns Adesk::kFalse). When I've coded them to return Adesk::kTrue and true, respectively, I've found that clone is called but and overridden subGetTransformedCopy isn't.
I've checked my overloads' signatures, a direct call to acedXformSS before acedDragGen will trigger my subTransformBy.
I'm guessing I'm missing something; most likely my initial assumption (that acedDragGen transforms its selection set using acedXformSS or similar) is wrong.
At the moment I'm looking for a solution that does not involve using global/static data (e.g. having a global pointer to my entity and calling transformBy inside scnf).
Any information as to what I'm doing wrong or any method to get the translation information from acedDragGen to my custom entity would be much appreciated.