Views and their tags

Views and their tags

Anonymous
Not applicable
322 Views
1 Reply
Message 1 of 2

Views and their tags

Anonymous
Not applicable

Is there any way to find a relationship between a view and its callout tags, whether it is a detail or section or elevation or whatever?

 

I am selecting a viewport and I can easily see what the view id is for that viewport, but I need to go one more step and find out what tags are related to that view. Almost an inverse of find referring view.

 

I noticed the ID of a callout seems to be one less than the view itself, so I thought I could go down this road, but that is only for "live" views and references. If you create a callout that REFERENCEs OTHER VIEW, the ID number can be way off, so that is not a safe way to go. I also thought about matching up the callout and view based on the view name, but view names are only unique per view type.

0 Likes
323 Views
1 Reply
Reply (1)
Message 2 of 2

Joe.Ye
Alumni
Alumni
Hello, I think the only reliable way is to get the view name. Callout Tag of a view has the same name with the referenced view. As you pointed out, the view name is only unique within the same view type. From the Callout Tag, we know its view type by its ParentView's view type. The parent view of a callout tag can be retrieved by its ParentView parameter.


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes