how to achieve this editing interaction of AcDbEntity  by API ?

how to achieve this editing interaction of AcDbEntity  by API ?

27925916
Advocate Advocate
1,107 Views
4 Replies
Message 1 of 5

how to achieve this editing interaction of AcDbEntity  by API ?

27925916
Advocate
Advocate

how to achieve this editing interaction of AcDbEntity  by API ? the entity will show "+" mark when it is selected, and you can click the "+" to pull out

27925916_0-1729565677015.png

27925916_1-1729565700482.png27925916_2-1729565789371.png

 

0 Likes
Accepted solutions (1)
1,108 Views
4 Replies
Replies (4)
Message 2 of 5

daniel_cadext
Advisor
Advisor

Not easy, you need to use override of AcDbEntity::getGripPoints , AcDbEntity::moveGripPointsAt that use AcDbGripDataPtrArray ( AcDbGripData )

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes
Message 3 of 5

27925916
Advocate
Advocate
that way can draw the “+”? and notify when the “+” is clicked
0 Likes
Message 4 of 5

daniel_cadext
Advisor
Advisor
Accepted solution

AcDbGripData has worldDraw, viewportDraw. so you can draw your own custom glyph

use hotGripFunc for notification that it's hot.

 

it's pretty powerful, but not easy, the last sample I see is ARX2007\samples\entity\grip

unfortunately, it's been removed from current SDKs. or merged into some else

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes
Message 5 of 5

27925916
Advocate
Advocate
THANKS