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: 

Set Profile View Stations

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dwcouch123
410 Views, 1 Reply

Set Profile View Stations

I am using the profile sample VB.net program to create an alignment, profile view and profile.  The profile view defaults to start at station -0+25.  I want to set the Profile View starting station based on the "Align_strt_sta" value I have defined based on the Alignment Stationing.  I have tried the .StationStart() shown below, but I just get a unhandled exception.  Any help would be appreciated.  Dave

 ' Create the profile view and add it to the alignment's
        ' collection of profile views.
        If oProfileView Is Nothing Then
            id = ProfileView.Create(m_CivilDoc, Prof_View_Name, PROFILEVIEW_BANDSET_STYLE_NAME, Align_Name, pviewposition)
            oProfileView = pviewTransaction.GetObject(id, OpenMode.ForWrite)
        End If

        'oProfileView.StationStart() = Align_Strt_Sta
        oProfileView.Description = "Profile view of alignment '" & m_SampleAlignment.Name & "'"
        oProfileView.StyleName = PROFILE_VIEW_STYLE_NAME

 

1 REPLY 1
Message 2 of 2
dwcouch123
in reply to: dwcouch123

I figured out a solution to the problem.  I was able to correct the alignment stations and that fixed the profile view stations.

 

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

Post to forums  

Rail Community


Autodesk Design & Make Report