Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've not had this issue before, so I believe this is a new issue with this update. I'm getting a Boolean conversion error while attempting to concatenate a string. I've broken down the lines into small segments and the occurs with just a simple "Temp = Temp &" once it enters the condition statement shown in my ilogic snippet below.
Temp = "EV02:V1-" If DoubleVang Then Temp = Temp & "D" Else Temp = Temp & "S" 'Double or Single vang If Vertical Then Temp = Temp & "V" Else Temp = Temp & "H" 'Vertical or Horizontal orientation If RoundCap Then Temp = Temp & "R" Else Temp = Temp & "F" 'Round or Facetted to match arm If PointOnTop Then Temp = Temp & "P" Else Temp = Temp & "F" 'Point or Flat on top of arm Temp = Temp & Right(CStr(NoSides + 100), 2) & 'Number of sides on arm Right(CStr(Round(oMatThick / 1 in * 16) + 100), 2) & 'Material thickness [in] (value/16) [2 digits] Right(CStr(Round(CapRad * 2 / 1 in * 8) + 1000), 3) 'Cap Diameter [in] (value/8) [3 digits] {to facetted point or rounded edge} If DrainHoles Then Temp = Temp & 'this is causing a boolean conversion error ":DH" & Right(CStr(NoSides + 100), 2) & CStr(oNoDrainHoles) & '# of drain holes (actual value) [1 digit] Temp = Temp & Right(CStr(Round(HoleDia / 1 in * 16) + 100), 2) & 'drain hole diameter (value/16) [2 digits] Right(CStr(Round(DistY / 1 in * 16) + 1000), 3) & 'X offset value (value / 16) [3 digits] Temp = Temp & Right(CStr(Round(DistX / 1 in * 16) + 1000), 3) 'Y offset value (value / 16) [3 digits] If r = 0.5 in Then Temp = Temp & "A" Else Temp = Temp & "B" If h = 0.5 in Then Temp = Temp & "A" Else Temp = Temp & "B" If VangThick > 0 And Not VertVang Then Temp = Temp & "S" Else Temp = Temp & "X" End If
Autodesk Inventor Certified Professional

Solved! Go to Solution.