Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add SectionView to Section View Group

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
kbarnettza
568 Views, 2 Replies

Add SectionView to Section View Group

C3D 2012

Is it possible, in c# code, to add a sectionview to a section view group?

If yes, please provide example code.

Thx.

Kevin.

 

2 REPLIES 2
Message 2 of 3
kbarnettza
in reply to: kbarnettza

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 .. 

Correct?

 

Message 3 of 3
Partha.Sarkar
in reply to: kbarnettza

Hi Kevin,


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.

 

Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report