AutoCAD Civil 3D Customization

Reply
Valued Mentor
Posts: 359
Registered: ‎08-13-2007
Message 1 of 3 (195 Views)
Accepted Solution

Add SectionView to Section View Group

195 Views, 2 Replies
11-07-2012 02:53 AM

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.

 

Valued Mentor
Posts: 359
Registered: ‎08-13-2007
Message 2 of 3 (189 Views)

Re: Add SectionView to Section View Group

11-07-2012 08:11 PM in reply to: kevin.barnett

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?

 

ADN Support Specialist
Posts: 542
Registered: ‎06-09-2009
Message 3 of 3 (173 Views)

Re: Add SectionView to Section View Group

11-13-2012 08:49 PM in reply to: kevin.barnett

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs