Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Another bug in "Reports_PointStaOffset.dvb

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
304 Views, 0 Replies

Another bug in "Reports_PointStaOffset.dvb

Hi,

The supplied metric report adds an "m" to the offset value in the report
table and not to the Chainage value. I expected that both columns would be
consistent in their use of the "m" I also expect the imperial reports will
suffer similar inconsistencies, but haven't checked

' g_oPointDataArr(nOffsetIndex) = FormatDistSettings(offSet) ' This
code returns the offset string with an m

I tried the obvious
g_oPointDataArr(nOffsetIndex) = Format (offset, "#0.00"), but for some
reason I can't explain the program would not accept the "Format" function.

I defined a new string variable sOff and used the following in lieu of the
line above to get a credible report.

sOff = FormatDistSettings(offSet)
sOff = Left$(sOff, Len(sOff) - 1)
If InStr(sOff, ".") = Len(sOff) - 1 Then
sOff = sOff & "0"
End If
g_oPointDataArr(nOffsetIndex) = sOff


--

Laurie Comerford
CADApps
www.cadapps.com.au
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report