• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D Customization

    Reply
    Valued Mentor
    Posts: 266
    Registered: ‎08-13-2007
    Accepted Solution

    Add SectionView to Section View Group

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

     

    Please use plain text.
    Valued Mentor
    Posts: 266
    Registered: ‎08-13-2007

    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?

     

    Please use plain text.
    ADN Support Specialist
    Posts: 206
    Registered: ‎06-09-2009

    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

    Please use plain text.