乐筑天下

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

[编程交流] 如何找到缩放实体?

[复制链接]

11

主题

46

帖子

35

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-6 10:15:42 | 显示全部楼层 |阅读模式
海在这里巴拉吉。。。实际上,我们正在使用5种类型的天平。。。类似比例1,1.5,2,3,4。。缩放后,我们无法找出哪个是缩放的。。。Bcoz 1和1.5刻度仅用于寻找小偏差。。。因此,通过lisp,我选择了实体,这意味着它需要显示其缩放与否。。比例意味着它的比例。。这个细节是可能的????通过代码??有这方面的代码吗???
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:20:45 | 显示全部楼层
巴拉吉,你是在要求别人给你写代码吗。。。再一次
 
“否
  1. for You!"</p>
  2. <p> </p>
  3. <p>"Come back one year!"</p>
  4. <p> </p>
  5. <p><img src="https://www.cadtutor.net/forum/uploads/monthly_2010_10/sein_soup_nazi.jpg.0d32c49339e376826c8f330ed572f649.jpg"   ></p>
  6. <p> </p>
  7. <p>Edit:</p>
  8. <p>Look into DXF codes 41, 42, and 43... then write some code yourself... and use code tags!</p>
  9.                        
  10.                  <p>i dont know the code creation...so only i am asking....man plz try to help me</p>
  11.                        
  12.                  <p> </p>
  13. <p> </p>
  14. <p> </p>
  15. <p>... I already did.</p>
  16.                        
  17.                  <p>DXF codes 41, 42, and 43 where its availble??Plz tell exact path</p>
  18.                        
  19.                  <p> </p>
  20. <p>Look for the entget in the car. </p>
  21. <p> </p>
  22. <p>It *might* be sitting in the cdr, next to assoc and his DXF friend.</p>
  23.                        
  24.                  <p>hay RenderMan and balaji i think its possible to findout?</p>
  25.                        
  26.                  <p>Once the entity is scaled (in model space), it becomes a new entity. As far as I know, there is no way to find out if any entity has been scaled or not. </p>
  27. <p> </p>
  28. <p>If you want to find out a scale of a viewport, you will be able to do it by dividing values of assoc 41 and 45 of that viewport's dxf code. But again, it won't to tell you if that was changed previously.</p>
  29.                        
  30.                  <p> </p>
  31. <p> </p>
  32. <p>The one exception to that statement is blocks (including external references). </p>
  33. <p> </p>
  34. <p>For example, it is easy to identify if a block has been scaled, as I described above. If not using DXF group codes, one could simply use the *EffectiveScaleFactor, and/or *ScaleFactor properties (for X, Y, Z respectively) given a BlockObject.</p>
  35.                        
  36.                  <p> </p>
  37. <p>:lol:</p>
  38.                        
  39.                  <p> </p>
  40. <p>I may have to consider replying to all code questions in this format... I see it as a 'lost art' of sorts. </p>
  41. <p> </p>
  42. <p>Glad you appreciate the laughable value, bud. </p>
  43.                        
  44.                  <p> </p>
  45. <p>So they must be having a cup of tea together .  :lol:</p>
  46. <p> </p>
  47. <p>Avery nice explainations for you Renderman.</p>
  48. <p> </p>
  49. <p>I liked them</p>
  50.                        
  51.                  <p> </p>
  52. <p> </p>
  53. <p>What's life without a bit of levity every now and then...!? :wink:</p>
  54.                        
  55.                  <p> </p>
  56. <p>Do you mean by the word (scale) the height of text(s) ? </p>
  57. <p> </p>
  58. <p>I couldn't get you well. </p>
  59. <p> </p>
  60. <p>Regards.</p>
  61.                        
  62.                  <p>or a block</p>
  63.                        
  64.                  <p> </p>
  65. <p>What did you understand from her start thread ?</p>
  66. <p> </p>
  67. <p>Really I don't know .</p>
  68.                        
  69.                  <p>Block entity data dump (entget (car (entsel))):</p>
  70. <p></p>
  71. [code](-1 . <Entity name: 7effa6c0>)
  72. (0 . "INSERT")
  73. (330 . <Entity name: 7ef9ccf8>)
  74. (5 . "533D8")
  75. (100 . "AcDbEntity")
  76. (67 . 0)
  77. (410 . "Model")
  78. (8 . "C-STRM-STRC")
  79. (100 . "AcDbBlockReference")
  80. (2 . "P6")
  81. (10 2.03439e+006 510262.0 0.0)
  82. [color=red](41 . 1.0) "X"
  83. (42 . 1.0) "Y"
  84. (43 . 1.0) "Z"[/color]
  85. (50 . 0.0)
  86. (70 . 0)
  87. (71 . 0)
  88. (44 . 0.0)
  89. (45 . 0.0)
  90. (210 0.0 0.0 1.0)
111546wiokj5wzn514f45v.jpg
回复

使用道具 举报

11

主题

46

帖子

35

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-6 10:23:45 | 显示全部楼层
 
 
... 艾伦,我好像都不认识你。
 
厌倦了在“最新消息”列表中看到这一点?英雄联盟
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:26:39 | 显示全部楼层
Lol离我厌倦的东西足够近了。当然,我想它就像一只流浪动物。如果你继续喂它们,它们会一直回来的。
回复

使用道具 举报

11

主题

46

帖子

35

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-6 10:29:18 | 显示全部楼层
 
英雄联盟
 
这就是为什么我想我将开始用“故事形式”来回答。。。这似乎很成功。
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:32:20 | 显示全部楼层
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 10:37:48 | 显示全部楼层
hay RenderMan and balaji i think its possible to findout?
回复

使用道具 举报

9

主题

167

帖子

163

银币

初来乍到

Rank: 1

铜币
43
发表于 2022-7-6 10:38:28 | 显示全部楼层
Once the entity is scaled (in model space), it becomes a new entity. As far as I know, there is no way to find out if any entity has been scaled or not.
 
If you want to find out a scale of a viewport, you will be able to do it by dividing values of assoc 41 and 45 of that viewport's dxf code. But again, it won't to tell you if that was changed previously.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:41:47 | 显示全部楼层
 
 
The one exception to that statement is blocks (including external references).
 
For example, it is easy to identify if a block has been scaled, as I described above. If not using DXF group codes, one could simply use the *EffectiveScaleFactor, and/or *ScaleFactor properties (for X, Y, Z respectively) given a BlockObject.
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

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

铜币
310
发表于 2022-7-6 10:45:17 | 显示全部楼层
 
:lol:
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 20:48 , Processed in 0.904290 second(s), 74 queries .

© 2020-2025 乐筑天下

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