Author Topic: Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace  (Read 1080 times)

0 Members and 1 Guest are viewing this topic.

geocad

  • Mosquito
  • Posts: 2
Hi, everybody.

I'm trying to create Surface spot elevation label in Civil 3D using AutoLISP, but can't find how to find and access SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace.
I've looked into Document and Database objects, but couldn't yet find above mention property/collection, so that I can use method Create on it.

Maybe sombedy can give me a clue?
SurfaceElevationLabel Members - http://docs.autodesk.com/CIV3D/2016/ENU/API_Reference_Guide/html/78517b1c-4713-65c7-ff61-f6662d147a02.htm
Autodesk.Civil.DatabaseServices Namespace - http://docs.autodesk.com/CIV3D/2016/ENU/API_Reference_Guide/html/73fd1950-ee31-00b8-4872-c3f328ea1331.htm

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Those links are for the .NET API which lisp cannot use. You need the COM API for working with lisp. Unfortunately, the COM API does not expose anything related to adding labels, so you will need to use (command "AeccAddSurfaceSpotElevLabel" ....)

COM API documentation: http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/com/civil_om.htm

Now, should you decide to use .NET instead of lisp, that can be done without the need for the command call.

geocad

  • Mosquito
  • Posts: 2
Thanks for a hint - how could I not figure it out by myself?  :idiot2: