Drafting View, == Node

I am trying to understand why this node setup is not working:

Shown in red is what I would expect (true for drafting views and false for anything else). Appreciate the feedback!

The == node is just a comparison. You’re basically saying is DraftingView (a view type) the same as CF002-A2 (a view instance)? The answer is no. They’re not even the same object type. You have to first get the view type from each view and then check to see if it matches.

3 Likes

Thank you, I knew it was something basic I was missing. I saw the Drafting View at the front of my input list and thought that it would just work.

Hi,

Nick is right of course…

But I think there’s also a fundamental problem with what you’re trying to do…

The == node doesn’t work for (all?) elements… So you might need to convert your object to string

image

You could test for equality properly using Python, but in this instance that will be more effort than using ‘String from Object’.

Hope that’s of interest,

Mark

1 Like