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

Custom Jig Working in R18 but not R19

3 REPLIES 3
Reply
Message 1 of 4
dshKSS
427 Views, 3 Replies

Custom Jig Working in R18 but not R19

I have a custom jig that extends AcEdJig to use with a custom object.

 

In the routine a jig is created and a method on the jig called that starts the AcedJig::drag() routine.

 

The code is exactly the same in R18 and R19 and I can see in the debugger that the jig is my custom jig.

 

The problem is the drag behaviour is not working properly in R19, there is no preview of my custom object being dragged. The custom code is stepped through fine and it reaches the AcedJig::drag() call.

 

However in R18 the jig works correctly but will not step through any code into the custom jig. Both versions I have been using mixed mode debugging.

 

The call works like this:

 

CustomJig * newJig = new CustomJig(customObject);

newJig->doIt(_T("Prompt for user"));

 

The 'do it' method

 

Adesk::Boolean CustomJig::doIt(AcString prompt)
{

     setDispPrompt(prompt);
     AcEdJig::DragStatus stat = drag();
     setDispPrompt(_T("\n"));
     if (stat != 0)
     {
         return Adesk::kFalse;
     }   
   

     return Adesk::kTrue;
}

 

Anyone have any ideas why R19 isn't working and R18 won't step through? 

Tags (2)
3 REPLIES 3
Message 2 of 4
fenton.webb
in reply to: dshKSS

The stepping issue is most likely related to something not setup correctly in your debugger, perhaps you are loading the wrong DLL. Can you set break points?

The ghosting issue is most likely caused by not testing if the last input makes a difference to the newest input. If there is no change you should return the fact from your sampler



Fenton Webb
AutoCAD Engineering
Autodesk

Message 3 of 4
dshKSS
in reply to: dshKSS

It's not the debugger I can set breakpoints and step through in R19.

 

It's not the code as it works in R18, it's not 'ghosting' anyway it's just not giving a moving preview in R19 - same code as R18 though but using a different version of ObjectArx

Message 4 of 4
Balaji_Ram
in reply to: dshKSS

Hi Dan,

 

I have attached a modified version of the EllipseJig SDK sample to jig a custom entity.

The preview was displayed while jigging in AutoCAD 2013.

 

To try the attached project :

 

-Build the attached project

- start AutoCAD 2013

- Appload the .dbx and .arx modules

- Run the "Test" command and provide the inputs for the ellipse custom entity.

 

It seems this behavior is specific to your implementation. Can you please share a reproducible sample project ?



Balaji
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report

”Boost