Is the red distance going to be consistent all the time. If so why not move the arrow grips the back the distance it needs to be? Just like I've done in the attached drawing
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Depending on what you finally need there are several ways.
One of them is attached.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Maybe I wasn't very clear in my request...
Initially I'll stretch by the right hand grip to a new overall length
Then what I need is to grab the left hand grip, stretch to the left and type in however much I need to stretch by.
eg. I type in 0.05 and the block stretches by 0.05 at both ends.
Currently I need to type in "original length + stretch amount".
Hopefully that makes sense (I'm pretty much a beginner when it comes to dynamic blocks).
Thanks.
What version of AutoCAD do you have? It may be a better idea to use constraints. Linear parameters can not start with a 0 length, they have to be a distance which is not 0
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Test the attached block WCILL - pa1.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
@j.palmeL29YX That was my first thought
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
@dlbsurveysuk wrote:
WCILL - pa1 only seems to have one grip for overall length .
That is what you asked for in post #4 ("I'll stretch by the right hand grip to a new overall length").
"Then what I need is to grab the left hand grip, stretch to the left and type in however much I need to stretch by."
What/where is my misunderstanding?
when I try and open it in the Block Editor I get ; error:
Try it again, here are no problems
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi, thanks for your response.
I meant that there is only the overall length grip. There is no grip on the left for stretching.
Attached image shows block.
Could there be some AutoCad setting/variable that I need to change?
Thanks.
PS Your video shows exactly what I want.
Here a new upload.
HTH
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
This time I get errors (see attached). After recover it is the same problem as before.
PS I am running full AutoCad 2022
Maybe a quick description of how you did it, and I could try and figure out constructing the block myself?
Say no to the errors then copy and paste the block into a new totally blank drawing. Do you still get the errors?
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
@dlbsurveysuk wrote:
I get errors
Ok I can (must 😞 ) confirm that. To open this block in ACAD 2022.1.3 shows the same problem here too.
I'll try to find how to avoid that - it will need a while ...
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
If I say no to the errors then copy paste into a blank drawing there is still no grip on the left and I get ; error: bad argument type: lentityp nil in the block editor as before.
After recovering the file it works also in ACAD 2022.
To do that:
- Open a new file
- command RECOVER
- select the new uploaded file
You will get a message that 2 objects were erased (I don't know which objects, they have nothing to do with our block definition). => Now the block works well (here, I hope for you too).
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
OK, so I've just been looking at the block to see how it was constructed for future reference.
Just to confirm - everything is the same as the original block I supplied apart from, you have given the linear parameter 2 the same point as start and end, so that it has a zero start length, and describes the stretch distance only?
So you can have a zero start length for a linear parameter?
@dlbsurveysuk wrote:
Just to confirm ... you have given the linear parameter 2 the same point as start and end, so that it has a zero start length?
So you can have a zero start length for a linear parameter?
No and no. As @h_s_walker correctly wrote, a dynamic parameter can never have length = 0.
I tricked a little - if you zoom close to the parameter (and set the precision of the units to 8 decimal places), you will see that the start and end points are 0.000001 units apart. That's why I wrote above, test the block (whether it meets your practical needs and whether you can live with such a small inaccuracy).
Sorry for the small cheating, but first I wanted to understand how you want the block to work. Perhaps there are other ways (e.g. using constraints) to achieve your requests. I did not yet try ...
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.