Hi there,
I was wondering if anyone knows how to check to see if a component exists in an assembly, prior to accessing it.
For instance, if a part is assembled to the model based on if a certain
parameter is true, is there a way to check if that component is in
session when writing relations? Something like:
if component exists<br style="color: rgb(255, 0, 0);">
hole_dia from component = .5
Also, is there a way of doing this for features in a part as well?
if feature exists<br style="color: rgb(255, 0, 0);">
hole_dia = .5
or
if feature is not supressed<br style="color: rgb(255, 0, 0);">
hole_dia = .5
The problem I have is, I can access feature values in an assembly from
a part, but if that component is supressed, I get errors in my
relations if I edit the relations while the part is supressed. I
also get "invalid symbol" errors under similar circumstances.
Thanks in advance
Jim
I was wondering if anyone knows how to check to see if a component exists in an assembly, prior to accessing it.
For instance, if a part is assembled to the model based on if a certain
parameter is true, is there a way to check if that component is in
session when writing relations? Something like:
if component exists<br style="color: rgb(255, 0, 0);">
hole_dia from component = .5
Also, is there a way of doing this for features in a part as well?
if feature exists<br style="color: rgb(255, 0, 0);">
hole_dia = .5
or
if feature is not supressed<br style="color: rgb(255, 0, 0);">
hole_dia = .5
The problem I have is, I can access feature values in an assembly from
a part, but if that component is supressed, I get errors in my
relations if I edit the relations while the part is supressed. I
also get "invalid symbol" errors under similar circumstances.
Thanks in advance
Jim