I have selected one line of a drafting view, how to get the view in which the line exists?
it shows in information window, but I am not getting any suitable API for it.
Note that- it's not a sketch line, it's a line generated from modelling to drafting.
please find the attachment to get clarification.
Solved! Go to Solution.
I've not tested it, but the .AskViewDependentStatus method may come in handy here.
See this code from GTAC:
The function doesn't do exactly what you are asking for, but it shows how to call the .AskViewDependentStatus method along with a few other methods that you might find useful.
Thanks for your reply.
I have got another solution which is pretty useful.
Now I am calling all objects of view using Myview.AskVisibleObjects().
Then by comparing the journalidentifier I get to know if the line belongs to the view.
Hope this is one of the solution.