Quantcast
Channel: SketchUp - SketchUp Community
Viewing all articles
Browse latest Browse all 37253

Function to test if custom attribute exists

$
0
0

@christophelucas wrote:

I am looking for a function that I can use in a dynamic component to test if a custom attribute exist.

I have 2 components A and B. Both components hold a component X.
On component A I have created a custom attribute TotalLength. On component B this does not exists.

What I would like to create is a custom attribute on component X that does something like this:
TotalLength = If(Exists(Parent!TotalLength),Parent!TotalLength,LenX)

Is there a workaround in sketchup to obtain this behaviour?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 37253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>