Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm starting to get an unexpected dash in my String Builder.
'Description generator
Dim oSB as New System.Text.StringBuilder() Dim DescFT As Integer Dim DescIN As Double DescFT = Fix(iProperties.Value("Custom", "Length") * 16) / 16 / 12 DescIN = (Round(iProperties.Value("Custom", "Length") * 16) / 16) - ((DescFT * 12) * 16 / 16) oSB.Clear oSB.Append("PIPE SCH " & PipeSch & " ") oSB.Append(RoundToFraction(PipeSize, 1/8, RoundingMethod.Round) & Chr(34) & " DIA x ") oSB.Append(CStr(DescFT) & "'-") '<---- Extra dash occurs here oSB.Append(If (DescIN < 1 And DescIN > 0, "0 ", "")) oSB.Append(RoundToFraction(DescIN, 1 / 16, RoundingMethod.Round) & Chr(34)) oSB.Append(If (IsThreaded, ", THREADED", "")) If Len(DescOvr) > 3 Then iProperties.Value("Project", "Description") = DescOvr Else iProperties.Value("Project", "Description") = oSB.ToString
The above code has been working for me well for years, but with 2023 is now adding an extra dash. If I change the BLUE text above to remove the dash then I get that free extra dash. While I suppose I can work with this, but if this ever gets fixed later then I have to go back through all my coding to correct for the Inventor fix. Of course, as it is now, I have to go through all my coding to remove the dash.
[Result with above iLogic code]
[Result with dash removed from iLogic code]
Am I overlooking something obvious here? Is there a new "add a dash after a FT symbol" option I missed that I can turn off?
Autodesk Inventor Certified Professional
Solved! Go to Solution.