乐筑天下

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

[综合讨论] Dynamic Block Behavior--Stretc

[复制链接]

2

主题

389

帖子

387

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 23:55:02 | 显示全部楼层 |阅读模式
I came across an item that looked like a good victim for some simple dynamic block surgery. (It's not important, but if you want to know, it is a bolt used as an axle.)  After developing the block, I noticed that the behavior was not quite as predictable as I would have expected.  I did not bother with any constraints, only a couple of linear stretches. They are in the same direction, but one is in the middle, the other at one end.  The middle one seems to behave as I would expect.
 
When I enter a new value for the overall length, it updates by stretching the right end, and the left end stays put, as I would expect.  However, if I drag the overall stretch, it does stretch the right end, but it also moves the object the same distance.  Is there some principle of dynamic blocks that would predict this behavior? I'm doing this with vanilla AutoCAD 2012, but the DWG format is 2007, and the original drawing is from the early 90s.
 
I've attached a DWG file with the block already inserted.
Bolt Axle.dwg
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-7 00:03:41 | 显示全部楼层
When you stretch, if you choose an entire object, it moves the entire object as if you had used the "move" command. Is that what you mean?
回复

使用道具 举报

10

主题

598

帖子

594

银币

初来乍到

Rank: 1

铜币
48
发表于 2022-7-7 00:05:49 | 显示全部楼层
It works as expected here. either the end stretches or the nut moves, but not the whole block.
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-7 00:10:50 | 显示全部楼层
It works for me too. That's why I assumed he was using the stretch command or something similar (if there's something similar that is).
回复

使用道具 举报

1

主题

597

帖子

599

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-7 00:16:36 | 显示全部楼层
The stretch behavior depends on what portion of the geometry you included in the "Stretch Area" as you are setting up the parameter/action combo.  What are you referring to when you say "drag the overall stretch"? 
When I drag either blue arrow, I see exactly what should happen.  The end one stretches the right end of the bolt, and the middle one moves the nut along the bolt.  In neither case does the left end move.
回复

使用道具 举报

1

主题

597

帖子

599

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-7 00:20:42 | 显示全部楼层
Yeah, that is the only result I have ever gotten from using the stretch command.  I never have figured out how to work it either.
回复

使用道具 举报

2

主题

389

帖子

387

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:23:09 | 显示全部楼层
Thanks for all the tries and replies.  I'll address this one specifically:
I agree and was "sure" I was doing it correctly. And it sounds like I was right in this case. 
Yes, that was a bit confusing. Sorry. I meant when I grab the rightmost linear stretch grip, the one on the end, and drag it.  It's supposed to change the overall length of the bolt, which it does, but in my case, it also moves the whole bolt that distance, like a combined stretch/move, except that the move does not have to be linear.  It does not exhibit this behavior when I simply type in the new value, and thus not the end of the world for me. 
It sounds like the behavior on your system--and on everyone's but mine!--does it right, and the way I would expect. 
I would do a video demo if I knew how and had the time.  Perhaps I haven't installed all of the SPs for 2012.   But for now, I'd rather blame it on my system and see if I can get a new one. But, no, I know that's just wishful thinking. Still, I can dream, but the temptation is to curse...or to nap.
回复

使用道具 举报

1

主题

597

帖子

599

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-7 00:30:19 | 显示全部楼层
Do you have Drag & Drop enabled?  Do you have Grips enabled within blocks? Maybe the blue arrow is right smack on top of a grip and the whole block gets selected.  I never activate the grips within blocks. They tend to be a bit of a bother at times, thus the option to toggle them exists.
回复

使用道具 举报

2

主题

389

帖子

387

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:35:35 | 显示全部楼层
OK, Dana W, you expert, you!  I had no idea that you could double up with a grip like that.  I was indeed picking on the corner grip, which not only invoked the dragging but also activated the dynamic linear stretch. Turning the block grips off sounds like a good idea.  I decided to use a simple toggle found here:http://www.ellenfinkelstein.com/acadblog/toggling-the-display-of-grips-within-blocks/.  I'm sure one of the LT guys could write a macro in DIESEL
回复

使用道具 举报

10

主题

598

帖子

594

银币

初来乍到

Rank: 1

铜币
48
发表于 2022-7-7 00:39:31 | 显示全部楼层
Something like
  1. ^C^C$M=$(if,$(=,$(getvar,gripblock),1),gripblock;0;;,gripblock;1;
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 21:22 , Processed in 0.347838 second(s), 72 queries .

© 2020-2025 乐筑天下

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