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
Solved! Go to Solution.