乐筑天下

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

[编程交流] (assoc 270 (entlast))

[复制链接]

19

主题

60

帖子

41

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
95
发表于 2022-7-6 10:05:01 | 显示全部楼层 |阅读模式
Dear All,
 
  Anyone can tell me (assoc 270 (entlast)). 270 is stand for which entities ? I can't find this item in dxf code table.
 
Thanks a lot !
回复

使用道具 举报

pBe

32

主题

2722

帖子

2666

银币

后起之秀

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

铜币
211
发表于 2022-7-6 10:11:32 | 显示全部楼层
MATERIAL group codes ?
270 Projection method of bump map mapper (default = 1):
1 = Planar
2 = Box
3 = Cylinder
4 = Sphere
回复

使用道具 举报

19

主题

60

帖子

41

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
95
发表于 2022-7-6 10:15:52 | 显示全部楼层
Thanks for your reply. I'm not sure this is material group codes or not but from existing code, it want to check the drawing unit is metric or not. After checking with the (assoc 270 (entsel)). It will use (setq a (cdr (assoc 270 xxx))) to check the value is equal to 55 or not.
 
 
 
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 10:21:29 | 显示全部楼层
Look in the Dimstyle Table Group
I highlighted it in red.
 
  1. 100 Subclass marker (AcDbDimStyleTableRecord) 2 Dimension style name 70 Standard flag values (bit-coded values):16 = If set, table entry is externally dependent on an xref32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is for the benefit of AutoCAD® commands. It can be ignored by most programs that read DXF™ files and need not be set by programs that write DXF files) 3 DIMPOST 4 DIMAPOST 5 DIMBLK (obsolete, now object ID) 6 DIMBLK1 (obsolete, now object ID) 7 DIMBLK2 (obsolete, now object ID) 40 DIMSCALE 41 DIMASZ 42 DIMEXO 43 DIMDLI 44 DIMEXE 45 DIMRND 46 DIMDLE 47 DIMTP 48 DIMTM 140 DIMTXT 141 DIMCEN 142 DIMTSZ 143 DIMALTF 144 DIMLFAC 145 DIMTVP 146 DIMTFAC 147 DIMGAP 148 DIMALTRND 71 DIMTOL 72 DIMLIM 73 DIMTIH 74 DIMTOH 75 DIMSE1 76 DIMSE2 77 DIMTAD 78 DIMZIN 79 DIMAZIN 170 DIMALT 171 DIMALTD 172 DIMTOFL 173 DIMSAH 174 DIMTIX 175 DIMSOXD 176 DIMCLRD 177 DIMCLRE 178 DIMCLRT 179 DIMADEC [color=red][b]270 [/b][/color][color=red][b]DIMUNIT (obsolete, now use DIMLUNIT AND DIMFRAC) [/b][/color]271 DIMDEC 272 DIMTDEC 273 DIMALTU 274 DIMALTTD 275 DIMAUNIT 276 DIMFRAC 277 DIMLUNIT 278 DIMDSEP 279 DIMTMOVE 280 DIMJUST 281 DIMSD1 282 DIMSD2 283 DIMTOLJ 284 DIMTZIN 285 DIMALTZ 286 DIMALTTZ 287 DIMFIT (obsolete, now use DIMATFIT and DIMTMOVE) 288 DIMUPT 289 DIMATFIT 340 DIMTXSTY (handle of referenced STYLE) 341 DIMLDRBLK (handle of referenced BLOCK) 342 DIMBLK (handle of referenced BLOCK) 343 DIMBLK1 (handle of referenced BLOCK) 344 DIMBLK2 (handle of referenced BLOCK) 371 DIMLWD (lineweight enum value) 372 DIMLWE (lineweight enum value)
回复

使用道具 举报

pBe

32

主题

2722

帖子

2666

银币

后起之秀

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

铜币
211
发表于 2022-7-6 10:22:29 | 显示全部楼层
 
Now that makes more sense
回复

使用道具 举报

19

主题

60

帖子

41

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
95
发表于 2022-7-6 10:28:54 | 显示全部楼层
Thank you so much for your help !
 
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:31:58 | 显示全部楼层
The Group code 270 can mean different things for different entities, group 270 is used only because it has been designated to store a desired data type.
 
http://autodesk.com/techpubs/autocad/acad2000/dxf/group_code_value_types_dxf_01.htm
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 10:35:17 | 显示全部楼层
 
Lee,
 
I have only seen 270 referenced in MATERIAL under OBJECT Group Codes and DIMSTYLE in the Table Group codes and not anywhere else to be found.
Where else could it be used?
Maybe I am misinterpreting what you mean, Could you elaborate a bit?
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:39:21 | 显示全部楼层
I'm just saying that a DXF Group code is not tied to an entity but rather used to store a specific data type (of course, there is a standard that is adhered to with regard to what the DXF code loosely represents, info here).
 
For example, if someone asks "What is DXF 11?"  All we can really say is that it is a Double precision 3D point, but of course it could belong to AttDefs, Attribs, Text, Lines, Solids, 3DFaces, Ellipses... the list is pretty big.
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 10:44:46 | 显示全部楼层
 
Ok, I get your point now.
Thanks
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 21:10 , Processed in 0.411953 second(s), 72 queries .

© 2020-2025 乐筑天下

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