Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace
« previous
next »
Print
Pages: [
1
] |
Go Down
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
Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace
«
on:
January 29, 2021, 01:13:14 AM »
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
Logged
Jeff_M
King Gator
Posts: 4096
C3D user & customizer
Re: Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace
«
Reply #1 on:
January 29, 2021, 11:09:56 AM »
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.
Logged
geocad
Mosquito
Posts: 2
Re: Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace
«
Reply #2 on:
February 07, 2021, 09:24:50 AM »
Thanks for a hint - how could I not figure it out by myself?
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Getting SurfaceElevationLabel from Autodesk.Civil.DatabaseServices Namespace