Polyline and blocks

Polyline and blocks

Anonymous
Not applicable
986 Views
3 Replies
Message 1 of 4

Polyline and blocks

Anonymous
Not applicable

How to get blocks name and points where it is crosses with polyline ?

 

1.JPG

0 Likes
987 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

Are you using COM or .NET API?

 

You would need to go into the block, iterate through its content and try to do intersection between each object and the polyline outside the block.

 

You would need to transform the entities according to the transformation matrix of the block reference before doing the intersections.

You could also use Explode in .NET that would give back all the block content at the right place - i.e you don't have to transform the entities yourself.

 

I hope this helps.

 

Cheers,

Adam Nagy

Autodesk Developer Network

 

 



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 4

Anonymous
Not applicable

I'm using VBA. I try to made something like that:

1) find every polyline

2) for every polyline get them coordinates

3) made selectbypolygon for points from polyline

4) for every blocks crosses with selection made them name or id  array 

 

But I have problem to find blocks whom crosses selection. 

0 Likes
Message 4 of 4

Anonymous
Not applicable

I found solution for this problem. It is necessary to regen this viewport. 🙂

0 Likes