Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Find coordinates selected profileviewpart on profileview

damir_vidakovic
Enthusiast

Find coordinates selected profileviewpart on profileview

damir_vidakovic
Enthusiast
Enthusiast

So I have a need to find a coordinates of the ProfileViewPart, or a bounding box.

 

I have a dialog, which has a list of structures or pipes, and when I select a profile part in the dialog, I have a code that zooms and draws a temporary rectangle around the structure, or pipe in a profile view.

 

So far it works well, I get ProfileViewParts, and I open them and use ProfilePartBounds property that returns Extents3d, and I use it to draw a rectangle, to mark the position.

Good case:

undefined

 

 

The problem is when a ProfileViewPart is placed in more than one ProfileView, im my example 3 of them ( Structure - (954) ). Then I have bounds like this:

Bad case:

undefined

 

Even when you select that structure with AutoCAD selection, it gets highlighted in all profiles (blue up and down arrows in my picture).

 

So my question is: is there a way to get specific ProfileViewPart that is part of only one profile view, or something like that?

 

I attached a dwg, called NV17.dwg, where you can see the mentioned situation. 

 

Thank you

 

---------------------
Damir Vidakovic
www.studioars.com
0 Likes
Reply
384 Views
2 Replies
Replies (2)

Jeff_M
Consultant
Consultant
So you want to draw the yellow rectangle in each ProfileView?
Jeff_M, also a frequent Swamper
EESignature
0 Likes

damir_vidakovic
Enthusiast
Enthusiast

Yes, that's right. I'd like to have in my form a combo box with profile views in the dwg, and for selected profile view I'd like to list pipes or structures, and then when I select one item in that list, I'd like to be able to zoom and draw rectangle around it. 

---------------------
Damir Vidakovic
www.studioars.com
0 Likes

Type a product name