AutoCAD Civil 3D Customization

Reply
Valued Mentor
kevin.barnett
Posts: 381
Registered: ‎08-13-2007
Message 1 of 3 (208 Views)
Accepted Solution

Add SectionView to Section View Group

208 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
kevin.barnett
Posts: 381
Registered: ‎08-13-2007
Message 2 of 3 (202 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
Partha.Sarkar
Posts: 543
Registered: ‎06-09-2009
Message 3 of 3 (186 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 familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

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