Message 1 of 21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
How to select all dimensions in one view?
Or how to check to which view the dimension belongs?
Solved! Go to Solution.
Hello,
How to select all dimensions in one view?
Or how to check to which view the dimension belongs?
Solved! Go to Solution.
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.