Is it possible, in c# code, to add a sectionview to a section view group?
If yes, please provide example code.
Go to Solution.
The best solution appears to be:
Maintain a custom grouping of section views, probably using a dictionary to store the origin of the group, spacing of section views, scales etc. ... as ... it looks like there is no API access to Section View Groups ..
At the moment there is only COM API to add SectionView, however, I don't see any API available to access Section View Groups.
IAeccSectionViews:: Add Method -> Creates a new section view using the given parameters, adds it to the collection, and returns a pointer to the new instance.
HRESULT Add([in] BSTR Name, [in] BSTR Layer, [in] VARIANT Origin, [in] IAeccSectionViewStyle* Style, [in] IAeccSectionViewBandStyleSet* BandStyleSet, [out, retval] IAeccSectionView ** pVal);
SectionView or Section view Groups is not yet available in Civil 3D .NET API. These are all in 'Wish list" for future release.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.