Author Topic: Does anyone know where to find Grading Groups in the Civil3D API??  (Read 2053 times)

0 Members and 1 Guest are viewing this topic.

stevenh0616

  • Guest
Hi,

I've been looking through the API for Civil3D trying to access Grading Groups. It seems like there would be a method under Sites to access Grading Groups IDs, but there is nothing there that I have seen. Been looking elsewhere like the CivilDoc as well, but can't seem to find them.

Does anyone know where they would be? Thanks in advance.

Steve
Civil3D 2011

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: Does anyone know where to find Grading Groups in the Civil3D API??
« Reply #1 on: June 08, 2012, 09:28:17 AM »
The Grading & Grading Group objects have not been exposed by either of the C3D API's. My guess is that since these are still quite unstable without us messing with them, they don't think we should be trying to manipulate them. If you want to see these in the API, I suggest making sure to give your input in the API Wish List Survey which will be closing June 11.

Using a bit of lisp to quickly check what a grading object is, shows us that these are special Parcels. But listing the Parcels in a Site does not include the Grading Parcels.
Code: [Select]

#<VLA-OBJECT IAeccParcel 000000003cf11a00>
_$

; IAeccParcel: IAeccParcel Interface
; Property values:
;   Application (RO) = #<VLA-OBJECT IAeccApplication 0000000030e0da10>
;   AreaLabels (RO) = #<VLA-OBJECT IAeccParcelAreaLabels 00000000315974f0>
;   AreaLabelStyle = #<VLA-OBJECT IAeccLabelStyle 0000000030d71f90>
;   Description = ""
;   DisplayName (RO) = Civil 3D API: The parameter is incorrect.
;   Document (RO) = #<VLA-OBJECT IAeccDocument 0000000030e0d050>
;   Handle (RO) = "385F"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 000000003f544b78>
;   Layer = "C-TOPO-GRAD"
;   Linetype = "ByLayer"
;   LinetypeScale = 1.0
;   Lineweight = -1
;   Material = "ByLayer"
;   Name = ""
;   Number = 0
;   ObjectID (RO) = 42
;   ObjectID32 (RO) = 42
;   ObjectName (RO) = "AeccDbGrading"
;   OwnerID (RO) = 43
;   OwnerID32 (RO) = 43
;   ParcelLoops (RO) = #<VLA-OBJECT IAeccParcelLoops 0000000030e0d890>
;   Parent (RO) = #<VLA-OBJECT IAeccSite 000000003cf11c00>
;   PlotStyleName = "ByLayer"
;   ShowToolTip = -1
;   Statistics (RO) = #<VLA-OBJECT IAeccParcelStatistics 0000000030e14d30>
;   Style = Civil 3D API: Unspecified error
;   StyleName (RO) = ""
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 000000003f543b50>
;   Visible = -1
; Methods supported:
;   AddMultipleSegmentLabels (3)
;   AddSingleSegmentLabel (3)
;   ArrayPolar (3)
;   ArrayRectangular (6)
;   Copy ()
;   Delete ()
;   GetBoundingBox (2)
;   GetExtensionDictionary ()
;   GetUserDefinedPropertyValue (1)
;   GetXData (3)
;   Highlight (1)
;   IntersectWith (2)
;   IsReferenceObject ()
;   IsReferenceStale ()
;   IsReferenceSubObject ()
;   IsReferenceValid ()
;   Mirror (2)
;   Mirror3D (3)
;   Move (2)
;   Rotate (2)
;   Rotate3D (3)
;   ScaleEntity (2)
;   SetUserDefinedPropertyValue (2)
;   SetXData (2)
;   TransformBy (1)
;   Update ()

stevenh0616

  • Guest
Re: Does anyone know where to find Grading Groups in the Civil3D API??
« Reply #2 on: June 08, 2012, 09:39:26 AM »
Ahhh... not what I wanted to hear. And all I wanted to access was the name and description.

Bummer. Definitely will go and vote, but I agree they are unstable. We've had some strange things happen with them.

Thanks.

Steve