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: 

Civil 3D R2007 Bug in "Reports_PointsStaOffset.dvb"

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

Civil 3D R2007 Bug in "Reports_PointsStaOffset.dvb"

Hi,

The above program will not work if you have no Alignments in the first site
of your sites collections.

The error occurs as you cannot do the line

ReDim Preserve g_AlignsArr(nAlignCount - 1)

when nAlignCount = 0

Add the If statement as shown below to overcome this deficiency.

If nAlignCount > 0 Then
ReDim Preserve g_AlignsArr(nAlignCount - 1)
For Each oAlign In oSite.Alignments
Set g_AlignsArr(nCurAlignIndex) = oAlign
Combo_Align.AddItem (oAlign.Name)
nCurAlignIndex = nCurAlignIndex + 1
Next
End If


--

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