Hi Vinoth,
I am pretty sure there is no such functionality in VBA available ... and without many restrictions defined it's a question how such functionality should be implemented. So you have to implement it yourself. VBA is not good tool to implement any topology operation, but if your situation and requirements are simple enough, it can be done I guess.
You can define ElementScanCriteria to search for shapes only using defined range. The range will be derived from point location (something like a miniature box around the point). Such criteria should return any shape with intersecting range. In the next step you have to use e.g. Point3dInPolygonXY method to test if the point is located inside of some from returned shapes.
Of course if there is a possibility of overlapping shapes, so search will return them and they also pass "is point inside" test, it's up to you define what should happen next, because it's your workflow specific issue.
With regards,
Jan
I am pretty sure there is no such functionality in VBA available ... and without many restrictions defined it's a question how such functionality should be implemented. So you have to implement it yourself. VBA is not good tool to implement any topology operation, but if your situation and requirements are simple enough, it can be done I guess.
You can define ElementScanCriteria to search for shapes only using defined range. The range will be derived from point location (something like a miniature box around the point). Such criteria should return any shape with intersecting range. In the next step you have to use e.g. Point3dInPolygonXY method to test if the point is located inside of some from returned shapes.
Of course if there is a possibility of overlapping shapes, so search will return them and they also pass "is point inside" test, it's up to you define what should happen next, because it's your workflow specific issue.
With regards,
Jan