TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: XXL66 on October 24, 2018, 06:44:10 AM

Title: vlax-invoke intersectwith
Post by: XXL66 on October 24, 2018, 06:44:10 AM
Hi,

This method doesn't seem to work for a 2D polyline and 3D lines crossing it. Unless i'm missing something..
Is the only option to temporary move the 3D lines into 2D?


thx

Title: Re: vlax-invoke intersectwith
Post by: ribarm on October 24, 2018, 07:57:58 AM
It works on my AutoCAD...

Code: [Select]
Command: (vlax-invoke (vlax-ename->vla-object (car (entsel))) 'intersectwith (vlax-ename->vla-object (car (entsel))) acextendnone)

Select object:
Select object: (20.8522 15.2867 0.0)

In attachment - DWG for testing...
Title: Re: vlax-invoke intersectwith
Post by: XXL66 on October 24, 2018, 11:49:43 AM
ok, don't know what happened here, but it works indeed with this example, must have missed something.

thx!