- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I don't have much experience with coding, but dove down the rabbit hole last night attempting to generate a custom property set to populate our manhole point labels with the measure down information for pipe inverts.
I got the label to generate how I want, but the problem I'm running into is that if there is no measure down input, I don't want the invert label to populate in the point label.
Here's what I've got. It seems to me like this would be an easy solution, but I cannot get the If...Then...Else... script to function how I want it to... It doesn't seem to be recognizing the If then else as a code statement at all, and just generating the result as text.
[Invert1MeasureDown] is a manual property definition, where the distance will be added manually from the crew's field notes. I have the property set to a default "0" value, since I had originally thought that an empty data point was the cause for my troubles.
See below for the make up of the [InvertFormula1] contents, but I don't believe that is the issue here...
(As you can see, my Insert VBScript Code dialogue box is empty, which I understand is a common occurrence. I've been entering everything manually.)
Extra credit problem!
I have a formula property definition ([InvertFormula1]) simply to structure the text how I want:
I.E. = [Invert1] FT. ([Invert1Description]) Which becomes something like:
I.E. = 234.34 FT. (8" CONC , N/S)
[Invert1] is a formula property definition I created which determines the invert by subtracting the [Invert1MeasureDown] from the object elevation
[Invert1Description] is a manual property definition.
Is there an easy way to structure the RESULT= of the [Invert1] to spit out a format like above so I don't need the [InvertFormula1]?
Solved! Go to Solution.