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

PB whith return point in transparency mode

4 REPLIES 4
Reply
Message 1 of 5
JPR
Participant
280 Views, 4 Replies

PB whith return point in transparency mode

I've a problem with Objectarx 2015/AutoCAD 2015 : in this version when I return a point to an AutoCAD command in a transparency mode this point is interpretated by the autosnap. In older version of AutoCAD it was not the case :

 

for exemple (my code) :

 

    ptretour = ads_buildlist(RT3DPOINT, RTP, 0);
    ads_cmd(ptretour);

 

or acedretpoint (RTP)

 

in AutoCAD 2014 / 2013 it works fine

 

in AutoCAD :

Command : line

pick the fisrt point : 'actq (the name of my arxcommand)

 

If the osnap is on : the RTP returned by my arx command actq is modified by the autosnap and the line began whre the osnap is detected and not at my RTP coordinates.

 

It was not the case with older versions of AutoCAD/Objarx

 

(NB : OSNAPCOORD is 2)

 

what'as about ? any idea ?

 

 

4 REPLIES 4
Message 2 of 5
owenwengerd
in reply to: JPR

As far as I know, it has always been the case that command input is adjusted based on OSNAPCOORD. I wonder if you're getting confused by synchronous vs. asynchronous command execution.

--
Owen Wengerd
ManuSoft
Message 3 of 5
JPR
Participant
in reply to: owenwengerd

No, this process works well in AutoCAD ...2010/2011/2012/2013/2014 but not in 2015 !

 I believe too that It's possible to be a problem with the synchronous/as command execution.

Message 4 of 5
maisoui
in reply to: JPR

Agree with Owen. You need to use acedCommandC for async command (coroutine).

Stop using ads_* functions, they have been marked as depracted for years now.

Regards,

--
Jonathan
Message 5 of 5
JPR
Participant
in reply to: maisoui

thanks !

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

Post to forums  

Autodesk Design & Make Report

”Boost