Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Find insertion point for a surface label

1 REPLY 1
Reply
Message 1 of 2
david.garrigues
379 Views, 1 Reply

Find insertion point for a surface label

If I use this code it will give me the insertion point for a block

(setq ent (car (entsel "\nSelect Main Object: ")))

(setq InsPt (assoc 10 (entget Ent)))

 

Now if I try to use this for a surface label and try to get the insertion point

(setq ent (car (entsel "\nSelect Main Object: ")))

(setq oEnt (vlax-Ename->Vla-Object ent))
(vlax-dump-object oEnt)

 

I dont see anything that will help me get the insertion point.  Is there some other sneaky way or utility function that can help me do this?

 

Help? 🙂

 

thanks a bunch!

dg

1 REPLY 1
Message 2 of 2

Not sure AutoLisp "sees" any property of a surface label like insertion point. It is possible though to get a surface label "location" property using .net api (Civil3D 2013 in any case). Spot elevation labels have only one "location" property, but it might be different with other labels (for exapmle surface slope label can have 2 such properties - "location" and "location2"). Check the api reference here:

http://docs.autodesk.com/CIV3D/2013/ENU/API_Reference_Guide/index.html

 

In case of spot elevation label you might be intrested in Autodesk.Civil.DatabaseServices Namespace -> SurfaceElevationLabel Class -> SurfaceElevationLabel Properties -> Location 

 

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report