How to test grip funcionality in custom object in an objectARX app?

How to test grip funcionality in custom object in an objectARX app?

o.simeon81
Participant Participant
584 Views
1 Reply
Message 1 of 2

How to test grip funcionality in custom object in an objectARX app?

o.simeon81
Participant
Participant

I have created an objectarx plugin with a custom entity and want to write a group of tests that will

actually test if movegrippointsat works as it should.

The tests should simulate the user's choice of the custom entity(ies), activation of grips, (dragging) and grip_stretching.

The purpose is to automate this testing in order for me not to do it manually each time I change something

in movegrippointsat.

Any idea (e.g. scripting, autolisp, objectARX) would be helpful.

Thank you in advance.

0 Likes
Accepted solutions (1)
585 Views
1 Reply
Reply (1)
Message 2 of 2

tbrammer
Advisor
Advisor
Accepted solution

You could try to develop a "virtual user" with AutoHotkey. It is a powerfull free tool that allows to write or record scripts that can simulate keyboard input, mousemoves and -clicks.

 

Also you could write test code that directly calls some of your overridden methods like getGripPoints(..) / moveGripPointsAt(..) like AutoCAD would do. The problem is that you need to find out the correct sequence and which parameters you have to pass.

 

I haven't tried this myself to test grips - but this is what I would do.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes