VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detecting point whether it is inside or outside a closed object

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
CodeBug
566 Views, 2 Replies

Detecting point whether it is inside or outside a closed object

Hi all,

 

I have a closed object and a line outside this object. I want to take anypoint on this polyline as a reference and check whether  that point is lying inside the closed object or outside.

 

Can anyone help with the logic for this or some VB code will be much appreciated.

 

Thanks!

 

2 REPLIES 2
Message 2 of 3
truss_85
in reply to: CodeBug

Take look that algorithm

 

inside poly

 

An other solution may be found via selection sets. you can filter points an polygonal selection set then check wanted points id.

Message 3 of 3
Alfred.NESWADBA
in reply to: CodeBug

Hi,

 

or check all >>>that ones<<< waiting for you 😉

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

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

Post to forums  

Autodesk Design & Make Report

”Boost