[Civil 3D] extract value from
Hi,How extract value (elevation and station) from label in Civil 2010.
(entget (car (entsel)))
Result:
((-1 . ) (0 . "AECC_VALIGNMENT_STATION_LABEL_GROUP") (330 . ) (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: ; IAeccProfileStationLabelGroup: Interfejs IAeccProfileStationLabelGroup; Wartości właściwości:; Application (RO) = #; Description = Civil 3D API: Parametr jest niepoprawny.; DimensionAnchorOption = 2; DimensionAnchorValue = 0.038; DisplayName (RO) = Civil 3D API: Parametr jest niepoprawny.; Document (RO) = #; Handle (RO) = "1E8C"; HasExtensionDictionary (RO) = 0; Hyperlinks (RO) = #; Increment = 6.096; LabelStyle = #; 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) = #; ProfileView (RO) = #; RangeEnd = 2272.71; RangeStart = 0.0; ShowToolTip = Civil 3D API: Parametr jest niepoprawny.; TrueColor = #; 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 elevation0 12010 12520 11030 105... 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.
页:
[1]