明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1458|回复: 5

动态镜向行不行? 高手说不行!

[复制链接]
发表于 2012-10-19 20:47:07 | 显示全部楼层 |阅读模式
“动态镜向”,即是画一根线或者找两个点,然后在左边做的任何动作,包括画线啊,拉伸啊,在右边都能象照镜子一样的同时出现。

工作中很多时候很想用到这样的东西。

在本版发了贴子:
http://bbs.mjtd.com/thread-96776-1-1.html
也搜了过去其它人发的贴子:
http://bbs.mjtd.com/forum.php?mo ... mp;page=1#pid555338

都说也许有,或者有,但始终没找到这样的东西。

intecad有类似的东西,但对称拉伸必须先标尺寸,它的动称画线没办法使用CAD的导航和抓点命令,功能大打折扣!
"觉得好,就打赏"
还没有人打赏,支持一下
 楼主| 发表于 2012-10-19 21:07:09 | 显示全部楼层
最后想去LEE_MAC那里看看有没有,给他写了封信:
Dear sir :

I think "dynamic mirror command" will be a big chanllenge, that mean when i run this routine, I pick a line , then what ever I done on the left side , the right side will do the same in the sametime , dynamic , symetric .mirror.
when i draw a line on the left , the right will draw the line same time dynamic !
when i select a complicated area to stretch on the left , the right side will select the same area (but mirrored) to stretch to .dynamic
when i move a object on the left side , the right side will do the same thing !
that will very great!
have you try  any idea like this!
I have send a post in the forum i hang out ! there is one gif explain what i want !
http://bbs.mjtd.com/thread-96776-1-1.html
you are the best expert i know, hope you  have write something like this!
best regards!
you friend in china
pan_liang

意思是问他有没可能性做到"动态镜向“这样的命令!
他回信说,简单的镜向画线是可以的,但象拉伸这样的命令,就很复杂了。但即使是象简单镜向画线这样的命令,也无法在画线过程中使用抓点等辅助命令,实际使用效果很不好。
他的回信:

Hi panliang,
Thank you for your message, I hope things are well in China.
The application that you describe could certainly be created for dynamic construction of simple geometric objects (such as Lines, Polylines, Circles, Arcs etc.), through the use of the grread function to detect the user's cursor position and construct the source and mirrored object accordingly – see the attached GIF animation for an example of such a program.
However, since AutoLISP does not permit multiple processor threads, it would not be possible to create a dynamic mirror for operations such as the Stretch command, unless you were to recreate the entire Stretch command within a grread loop – now that would be a lot of work!
Another option would be to use a Command Reactor to monitor to use of certain commands, and mirror the operations performed by these commands from within the Reactor Callback function after the command has completed, though, this would not create the 'dynamic' effect that you desire.
Note, however, that even though the dynamic effect can be created by using the grread function, the user has no access to standard drawing aids, such as Object Snap, Orthomode, Polar Tracking etc. which renders such programs rather impractical for general applications.
I hope this provides some food for thought.
Kind Regards,
Lee
PS: I unfortunately could not view the animation from your forum post as I am not a member of that forum.
Lee Mac Programming

他给了一个图片,示意如果镜向画线是怎么样的,图片非常诱人,但没法配合抓点真是一大遗撼。

现在看来寻找这样的东西是希望不大了!



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

点评

这个用grread函数很容易实现!  发表于 2012-10-19 23:11
发表于 2012-10-19 21:46:38 | 显示全部楼层
编程不是唯一。
可以使用动态块。
发表于 2012-10-19 21:47:56 | 显示全部楼层
哈哈,原来是LEE MAC的作品啊,高人中的高人
发表于 2012-10-19 21:49:07 | 显示全部楼层
技术值得探讨,但是用价值却是不大
 楼主| 发表于 2012-10-19 23:44:21 | 显示全部楼层
Gu_xl 版主,你好!

LEE_mac 也说了,可以用grread实现,但他说,这样的功能做出来,没法使用正交,抓点,极轴等等,实际使用效果很差,真是这样的吗?你有没有办法做出能使用正交,抓点,极轴,追踪等等CAD辅助手段的“镜向画线”命令呢?还是这条路真的不通?

我搜到你说过,gbhsu可以做这个,真的吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-6-6 18:15 , Processed in 0.171242 second(s), 30 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表