vla-CheckInterference not working

vla-CheckInterference not working

prountzos509
Contributor Contributor
394 Views
6 Replies
Message 1 of 7

vla-CheckInterference not working

prountzos509
Contributor
Contributor
any idea why 
(vla-CheckInterference(vlax-ename->vla-object(car(entsel)))(vlax-ename->vla-object(car(entsel))) :vlax-true :vlax-true)
not working but
(command "-interfere" ...) works ?
want to make an if statement so command route is not suitable and when solids not interfere returns nil
0 Likes
Accepted solutions (1)
395 Views
6 Replies
Replies (6)
Message 2 of 7

-didier-
Advisor
Advisor

Bonjour @prountzos509 

 

I did a test with several objects and when an interference actually exists it is perfectly created by the function.
In the absence of interference, it is NIL that is sent back.
Could I do a test with your objects?
Isolate them and drop the DWG on the forum, please.

 

Amicalement

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

0 Likes
Message 3 of 7

cadffm
Consultant
Consultant

my random clean sample

Sebastian

0 Likes
Message 4 of 7

-didier-
Advisor
Advisor

Bonjour @cadffm , @prountzos509 

 

actually, there is a problem with the command called this way.
But by using invoke, it would seem that the issue disappears.

(setq test(vlax-invoke obj1 'CheckInterference obj2 :vlax-true :vlax-true))


Is it checked at home?

 

Amicalement

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

Message 5 of 7

cadffm
Consultant
Consultant

@-didier-  schrieb:

actually, there is a problem with the command called this way.


I agree, the bug should be reported. @prountzos509 

 
 

 

 

Sebastian

0 Likes
Message 6 of 7

prountzos509
Contributor
Contributor

well more bugs with this 

(vla-CheckInterference ob1 ob2 :vlax-false :vlax-false)
because keeps creating the Interference portion of both objects evenif i command lisp not to.
Any idea how we report bugs ?
0 Likes
Message 7 of 7

prountzos509
Contributor
Contributor
Accepted solution

found it

needs (vla-CheckInterference ob1 ob2 :vlax-false :vlax-true)

0 Likes