Visual Basic Customization

Visual Basic Customization

Reply
Contributor
18 Posts
0 Kudos
Registered: ‎07-17-2012
Post 1 of 3
Accepted Solution

Detecting point whether it is inside or outside a closed object

268 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!

 

Hi,

 

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

 

- alfred -

Mentor
173 Posts
13 Kudos
Registered: ‎02-13-2011
Post 2 of 3

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*
9,808 Posts
1,210 Kudos
Registered: ‎06-29-2007
Post 3 of 3

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
-------------------------------------------------------------------------
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!