Jump to content

Recommended Posts

Posted

Hi,

How extract value (elevation and station) from label in Civil 2010.

 

(entget (car (entsel)))

 

Result:

 

((-1 . <Nazwa elementu: 7ef0eda0>) (0 . 
"AECC_VALIGNMENT_STATION_LABEL_GROUP") (330 . <Nazwa elementu: 7ef01cf8>) (5 . 
"1E8C") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . 
"AeccDbEntity") (100 . "AeccDbLabeling") (100 . "AeccDbAutoFeatureLabeling") 
(100 . "AeccDbVAlignmentLabeling") (100 . "AeccDbVAlignmentStationLabeling"))

 

(vlax-dump-object (vlax-ename->vla-object (car (entsel))) 'T)

 

Result:

 

Wybierz obiekt: ; [b][color="black"]IAeccProfileStationLabelGroup[/color][/b]: Interfejs 
IAeccProfileStationLabelGroup
; Wartości właściwości:
;   Application (RO) = #<VLA-OBJECT IAeccApplication 364d0838>
;   Description = Civil 3D API: Parametr jest niepoprawny.
;   DimensionAnchorOption = 2
;   DimensionAnchorValue = 0.038
;   DisplayName (RO) = Civil 3D API: Parametr jest niepoprawny.
;   Document (RO) = #<VLA-OBJECT IAeccDocument 189547b8>
;   Handle (RO) = "1E8C"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 35e9fa74>
;   Increment = 6.096
;   LabelStyle = #<VLA-OBJECT IAeccLabelStyle 35eb54c0>
;   Layer = "0"
;   Linetype = "ByLayer"
;   LinetypeScale = 1.0
;   Lineweight = -1
;   Material = "ByLayer"
;   Name = Civil 3D API: Parametr jest niepoprawny.
;   ObjectID (RO) = 2129718688
;   ObjectName (RO) = "AeccDbVAlignmentStationLabeling"
;   OwnerID (RO) = 2129665272
;   PlotStyleName = "ByLayer"
;   Profile (RO) = #<VLA-OBJECT IAeccProfile 15a8ddd0>
;   ProfileView (RO) = #<VLA-OBJECT IAeccProfileView 15a8e1d0>
;   RangeEnd = 2272.71
;   RangeStart = 0.0
;   ShowToolTip = Civil 3D API: Parametr jest niepoprawny.
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 35d55310>
;   Type (RO) = 0
;   UseFeatureEnd = -1
;   UseFeatureStart = -1
;   Visible = -1
; Obsługiwane metody:
;   ArrayPolar (3)
;   ArrayRectangular (6)
;   Copy ()
;   Delete ()
;   GetBoundingBox (2)
;   GetExtensionDictionary ()
;   GetXData (3)
;   Highlight (1)
;   IntersectWith (2)
;   IsReferenceObject ()
;   IsReferenceStale ()
;   IsReferenceSubObject ()
;   IsReferenceValid ()
;   Mirror (2)
;   Mirror3D (3)
;   Move (2)
;   Rotate (2)
;   Rotate3D (3)
;   ScaleEntity (2)
;   SetXData (2)
;   TransformBy (1)
;   Update ()

 

Example extract value:

station elevation
0 120
10 125
20 110
30 105
...

Posted

You don't get the info from the label you get it from the object, I have done a bit of stuff with surfaces and points you need to open the Aecc database and serach a particular object type. Pretty sure there is some posts here about accessing the alignment details from Civ3D.

 

You may still be able to use to use the label but need to open using VL ; ObjectName (RO) = "AeccDbVAlignmentStationLabeling"

; OwnerID (RO) = 2129665272

 

I am not sure if I posted the CIV3d point rotate code search here under CIV3d section and BIGAL it should be easy to change to a alignment label not at work for 2 months.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...