Ad

Monday, October 22, 2012

Adding PVIs to a Profile

Adding a PVI to a profile is relatively easy. There are some checks you will have to do. For instance you have to make sure the PVI station is within the alignment’s station range. Also you can’t add the second PVI with a lower station value then the first one. I think that’s about it. Here’s a small code snippet showing how it’s done:

Profile profile = profObjId.GetObject(OpenMode.ForWrite) as Profile;
double sta = 5;
double elev = 6;
profile.PVIs.AddPVI(sta, elev);

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad