Can I use a try statement in a child rule?
Example:
Child LinearDimension_1 As :IvLinearDimension
part1 = viewModel
part2 = viewModel
entity1 = "Edge1"
entity2 = (try "Edge2" catch error "Edge3")
End Child
How else would I do this? My issue is that the feature that I am placing changes entity names when it makes a completely circular hole and when it makes a partial hole. How do I look to see what edges are visiable/usable?
~Andrew
WIN 7 64
ETO 2013 R2
12 GB RAM
NVIDIA Quadro 4000
No, because the Try syntax is a "Statement" and the only thing allowed in assignments is an "Expression". Don't forget, a Child Rule is not a statement block. It is not procedural, doesn't return a value, etc.
Is there another way to check to see if the edge I'm looking for is visiable on the sheet?
Oddly enough, this posting answers my question ...
I would be game for adding the silent fail option in children. Especially with dimensions.
example
Child LinearDimension_1 As :IvLinearDimension
part1 = viewModel
part2 = viewModel
entity1 = "Edge1"
entity2 = "Edge2"
silentFail = True
End Child