Hi,
i’ve been thinking if there is a way to determine if a view is duplicated from another one. Is it possible?
Thank you!
Hi,
i’ve been thinking if there is a way to determine if a view is duplicated from another one. Is it possible?
Thank you!
Possibly. If your view is a dependent view, yes. If not, you can’t directly trace it back to the view from which it was duplicated.
You can use the GetPrimaryViewId method to get the original view (as noted by the documentation, an invalid ElementId will be returned if the view is not dependent).
Unfortunately my view is not duplicated as dependent.
But thanks for the help!
Yeah i dont think it is possible to see with dynamo if a view has been duplicated from another one, but you can check with dynamo if you have duplicate views in your project. Don´t know if you are looking for that?
I haven’t tried it, but duplicated might be doable, or at least narrow the list to check. That is to say get the views which share a common view range, plane, crop region, and view type. If they have been modified a lot than things may be so different it doesn’t work anymore, but if they are still the same it might be crazy enough to work.
Thanks for the help Jacob, but unfortunately, it won’t work.
The duplicated views on the projects are modifed quite a lot… up till a point that none of those steps you described are common to both the duplicated and the “original” view.
Dang…
If they are this different, why do you care?
I have a program that needs to diferentiate these views somehow.
Since there is no method for doing so i decided to change the process involved.
But thanks for the assistance!