Select all dimensions in one view

Select all dimensions in one view

Hubert_Los
Advocate Advocate
3,539 Views
20 Replies
Message 1 of 21

Select all dimensions in one view

Hubert_Los
Advocate
Advocate

Hello,

 

How to select all dimensions in one view? 
Or how to check to which view the dimension belongs?

 

 

 

0 Likes
Accepted solutions (3)
3,540 Views
20 Replies
Replies (20)
Message 21 of 21

FxRod
Enthusiast
Enthusiast

Thanks @WCrihfield , that was the method I was looking for. From your code, I only need the

Try : oCLView = DrawingDocumentUtil.GetDrawingView(cline) : Catch : End Try

and

 

Try : oCLView = DrawingDocumentUtil.GetDrawingView(cmark) : Catch : End Try

to get it work more or less.

 

But as you stated, it seems to randomly return nothing on auto-generated centerlines. Which is even more weird: When I get one single dimension from SelectSet to test, I find dimensions for which GetDrawingView returns a view, while for the same dimensions it returns nothing when used in the GetDimensionView function, although the code block I inserted is literally the same and is proven to be executed on the regarding dimension.

So, I might get back to the solution suppressing all other views, because all I want the script to do is to just count all dimensions on a selected view. The coding escalated a bit too much.

0 Likes