GetBoundingBox for polyline3d?

GetBoundingBox for polyline3d?

Anonymous
Not applicable
495 Views
3 Replies
Message 1 of 4

GetBoundingBox for polyline3d?

Anonymous
Not applicable

Hi there, is there a way to get the min and max of a 3d polyline, please? Lisp and vba have 'GetBoundingBox' but seems C# hasn't.

Thank you very much!

0 Likes
Accepted solutions (1)
496 Views
3 Replies
Replies (3)
Message 2 of 4

essam-salah
Collaborator
Collaborator

@Anonymous 

Bounds property is what you looking for 

0 Likes
Message 3 of 4

essam-salah
Collaborator
Collaborator
Accepted solution

@Anonymous 

check this:

 

            if (polyline3D.Bounds.HasValue)
            {
                var minPt = polyline3D.Bounds.Value.MinPoint;
                var maxPt = polyline3D.Bounds.Value.MaxPoint;
            }

 

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

Thank you essamcie!

0 Likes