Visual Basic Customization

Reply
Contributor
CodeBug
Posts: 18
Registered: ‎07-17-2012
Message 1 of 3 (208 Views)
Accepted Solution

Detecting point whether it is inside or outside a closed object

208 Views, 2 Replies
10-04-2012 09:19 PM

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!

 

Mentor
truss_85
Posts: 173
Registered: ‎02-13-2011
Message 2 of 3 (197 Views)

Re: Detecting point whether it is inside or outside a closed object

10-05-2012 01:48 AM 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.

*Expert Elite*
Alfred.NESWADBA
Posts: 8,570
Registered: ‎06-29-2007
Message 3 of 3 (193 Views)

Re: Detecting point whether it is inside or outside a closed object

10-05-2012 02:14 AM in reply to: CodeBug

Hi,

 

or check all >>>that ones<<< waiting for you :smileywink:

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community