Guest balajibth 发表于 2022-7-6 10:15:42

如何找到缩放实体?

海在这里巴拉吉。。。实际上,我们正在使用5种类型的天平。。。类似比例1,1.5,2,3,4。。缩放后,我们无法找出哪个是缩放的。。。Bcoz 1和1.5刻度仅用于寻找小偏差。。。因此,通过lisp,我选择了实体,这意味着它需要显示其缩放与否。。比例意味着它的比例。。这个细节是可能的????通过代码??有这方面的代码吗???

BlackBox 发表于 2022-7-6 10:20:45

巴拉吉,你是在要求别人给你写代码吗。。。再一次
 
“否 for You!"</p>
<p> </p>
<p>"Come back one year!"</p>
<p> </p>
<p><img src="https://www.cadtutor.net/forum/uploads/monthly_2010_10/sein_soup_nazi.jpg.0d32c49339e376826c8f330ed572f649.jpg"   ></p>
<p> </p>
<p>Edit:</p>
<p>Look into DXF codes 41, 42, and 43... then write some code yourself... and use code tags!</p>


                       
               <p>i dont know the code creation...so only i am asking....man plz try to help me</p>

                       
               <p> </p>

<p> </p>
<p> </p>
<p>... I already did.</p>


                       
               <p>DXF codes 41, 42, and 43 where its availble??Plz tell exact path</p>

                       
               <p> </p>
<p>Look for the entget in the car. </p>
<p> </p>
<p>It *might* be sitting in the cdr, next to assoc and his DXF friend.</p>


                       
               <p>hay RenderMan and balaji i think its possible to findout?</p>

                       
               <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>
<p> </p>
<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>


                       
               <p> </p>
<p> </p>
<p>The one exception to that statement is blocks (including external references). </p>
<p> </p>
<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>


                       
               <p> </p>
<p>:lol:</p>


                       
               <p> </p>
<p>I may have to consider replying to all code questions in this format... I see it as a 'lost art' of sorts. </p>
<p> </p>
<p>Glad you appreciate the laughable value, bud. </p>


                       
               <p> </p>
<p>So they must be having a cup of tea together .:lol:</p>
<p> </p>
<p>Avery nice explainations for you Renderman.</p>
<p> </p>
<p>I liked them</p>


                       
               <p> </p>
<p> </p>
<p>What's life without a bit of levity every now and then...!? :wink:</p>


                       
               <p> </p>
<p>Do you mean by the word (scale) the height of text(s) ? </p>
<p> </p>
<p>I couldn't get you well. </p>
<p> </p>
<p>Regards.</p>


                       
               <p>or a block</p>

                       
               <p> </p>
<p>What did you understand from her start thread ?</p>
<p> </p>
<p>Really I don't know .</p>


                       
               <p>Block entity data dump (entget (car (entsel))):</p>
<p></p>
(-1 . <Entity name: 7effa6c0>)
(0 . "INSERT")
(330 . <Entity name: 7ef9ccf8>)
(5 . "533D8")
(100 . "AcDbEntity")
(67 . 0)
(410 . "Model")
(8 . "C-STRM-STRC")
(100 . "AcDbBlockReference")
(2 . "P6")
(10 2.03439e+006 510262.0 0.0)
(41 . 1.0) "X"
(42 . 1.0) "Y"
(43 . 1.0) "Z"
(50 . 0.0)
(70 . 0)
(71 . 0)
(44 . 0.0)
(45 . 0.0)
(210 0.0 0.0 1.0)

Guest balajibth 发表于 2022-7-6 10:23:45

 
 
... 艾伦,我好像都不认识你。
 
厌倦了在“最新消息”列表中看到这一点?英雄联盟

BlackBox 发表于 2022-7-6 10:26:39

Lol离我厌倦的东西足够近了。当然,我想它就像一只流浪动物。如果你继续喂它们,它们会一直回来的。

Guest balajibth 发表于 2022-7-6 10:29:18

 
英雄联盟
 
这就是为什么我想我将开始用“故事形式”来回答。。。这似乎很成功。

BlackBox 发表于 2022-7-6 10:32:20

Guest giscad84 发表于 2022-7-6 10:37:48

hay RenderMan and balaji i think its possible to findout?

paulmcz 发表于 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.

BlackBox 发表于 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.

Lt Dan's l 发表于 2022-7-6 10:45:17

 
:lol:
页: [1] 2
查看完整版本: 如何找到缩放实体?