AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

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

Add SectionView to Section View Group

229 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: 384
Registered: ‎08-13-2007
Message 2 of 3 (223 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 (207 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

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 or visit the Installation and Licensing Forum to get help installing your software.