乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 49|回复: 1

[编程交流] [Civil 3D] extract value from

[复制链接]

46

主题

92

帖子

45

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
235
发表于 2022-7-6 06:18:00 | 显示全部楼层 |阅读模式
Hi,
How extract value (elevation and station) from label in Civil 2010.
 
  1. (entget (car (entsel)))
 
Result:
 
  1. ((-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"))
 
  1. (vlax-dump-object (vlax-ename->vla-object (car (entsel))) 'T)
 
Result:
 
  1. Wybierz obiekt: ; [b][color="black"]IAeccProfileStationLabelGroup[/color][/b]: 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:
  1. station elevation0 12010 12520 11030 105...
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 07:26:06 | 显示全部楼层
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.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 18:36 , Processed in 0.342278 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表