I'm trying to create a custom expression in a structure table that will list the "size" of the structure, wheter it be a circular or rectangular structure. My column simply states size and I want it to label 5' for a circular or 4'x4' for a rectangular (or whatever the specific sizes are). The thought was to create an IF function, but Structure Shape was not available to use in expressions (among other problems). Short of using the description field (tedious) as a workaround, does anyone have any ideas on this?
In this example - CB-104 is a rectangular structure and CB-106 is a circular. I'd like the CB-104 size to read 4'x4'.
Thanks for the help.
-JOEL
Civil 3D 2014 SP1
Mark Green
Working on Civil 3D in Canada
I've tried a few permutations of your suggestion hoping to get something like IF({Inner Structure Length}>0,{Inner Structure Diameter},{Inner Structure Length}x{Inner Structure Width}) to work. Part of the problem is that IF({Inner Structure Length}>0 doesn't sort out round structures from rectangular structures. The other problem is the limitation of expressions to deal with text like you pointed out.
I'm not sure that the text height expression trick would work since I can't sort the two structure types apart. I wish that {Structure Shape} was an option inside of expressions.
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Joe, thanks for pointing out the 'use the description field for overcoming all of Civil 3D's shortcomings' trick. Using it was a thought originally but I was hoping to find a way around that. I tried to set it up using the Use Size Name From Parts List As Description but it brings in the huge name and not just the 24"x36" that I'm looking for. So regardless of what that option is set for, I would have to go into each structure description to manually change it, and it wouldn't be dynamic if I were to swap out a part.
I think by finding out all the ways that I can't get this to work, I'm pointing myself in the right direction for the only way I was afraid that it would work - Part Builder. I'm thinking next I'll have to make a new optional property for all my structures that populates the information I want so I can use that to label. It should work, but it was more of an undertaking than I wanted to have to do.
Thanks all - still hoping for some ideas!
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.