AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

Reply
Valued Mentor
dcouch
Posts: 370
Registered: ‎10-22-2003
Message 1 of 2 (144 Views)
Accepted Solution

Set Profile View Stations

144 Views, 1 Replies
11-06-2012 03:07 PM

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

 

Valued Mentor
dcouch
Posts: 370
Registered: ‎10-22-2003
Message 2 of 2 (136 Views)

Re: Set Profile View Stations

11-08-2012 07:08 AM in reply to: dcouch

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

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.