Author Topic: Civil 3D 2012 INTEROP Alignment Tangent entity CurveGroupIndex  (Read 1889 times)

0 Members and 1 Guest are viewing this topic.

zeppeldep

  • Guest
INTEROP COM Development.
Using C# 2010 to make apps for C3D 2012.
This is best answered by expert C3D VBA swampers, as I am using the COM.
In the managed API, tangent alignment entities (Line) provide access to the CurveGroupIndex property.
How do I access this in the COM? I tried AeccTangent entity, but it does not include the CurveGroupIndex property.

?
Thx.
Kevin.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Civil 3D 2012 INTEROP Alignment Tangent entity CurveGroupIndex
« Reply #1 on: July 30, 2012, 10:33:26 AM »
I'm pretty sure that the Id property is the same as the CurveGroupIndex in NET. I don't have code to verify right now, might be able to later today.

zeppeldep

  • Guest
Re: Civil 3D 2012 INTEROP Alignment Tangent entity CurveGroupIndex
« Reply #2 on: July 31, 2012, 12:15:52 AM »
I agree .. I have finger trouble... must have mucked up somehow ...
below ... aeccArc provides CurveGroupIndex .. aeccTangent does not ... Tangent must be the type ... other alternatives? Line /Straight  ?

switch (ae1.Type)
{
    case AeccAlignmentEntityType.aeccArc:
        {
            IAeccAlignmentArc aa1 = (IAeccAlignmentArc)ae1;
            d1 = aa1.StartingStation; C1 = aa1.CurveGroupIndex;
            d2 = aa1.EndingStation; SC1 = aa1.CurveGroupSubEntityIndex;
            break;
        }
    case AeccAlignmentEntityType.aeccTangent:
        {
            IAeccAlignmentTangent aa1 = (IAeccAlignmentTangent)ae1;

zeppeldep

  • Guest
Re: Civil 3D 2012 INTEROP Alignment Tangent entity CurveGroupIndex
« Reply #3 on: July 31, 2012, 01:06:28 AM »
Example attached .. alignment has 2 tangent entities, both have Curve Group Index and Subentity Index values ... need code to access these values..
C# COM ..


zeppeldep

  • Guest
Re: Civil 3D 2012 INTEROP Alignment Tangent entity CurveGroupIndex
« Reply #4 on: July 31, 2012, 01:17:11 AM »
interesting . I just found a forum post I posted in 2008 asking a similar question:

http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/Add-Alignment-Entity-CurveGroupIndex-using-VBA/td-p/2177206

there was no reply ...