Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone
When I created Section View it gave me an exception of type Text saying that there is incorrect parameter, my code is:
double[] origin = new double[2];
origin[0] = bp.X;
origin[1] = bp.Y;
string strn ="";
AeccSectionViewStyle asvs = g_civil3ddoc.SectionViewStyles[0]
AeccSectionViewBandStyleSet bandstyle = g_civil3ddoc.SectionViewBandStyleSets[0];
foreach (AeccSampleLine asam inslg.SampleLines)
{
strn ="sv "+asam.Name;
asam.SectionViews.Add(strn, "0", origin, asvs, bandstyle);
origin[0] += 500;
}
while bp is a selected point (point3d type), anyone can help me
thanks
Solved! Go to Solution.