Author Topic: using 'cal in a stretch grip dialogue box  (Read 6570 times)

0 Members and 1 Guest are viewing this topic.

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #15 on: October 21, 2014, 11:55:31 AM »
 I attached the drawing with a sample block, if you would like to try.
Quote
Interestingly enough...using the STRETCH command on a normal rectangle does not produce the results you describe:
Yes, a line or rectangle behaves as you say ie click a line, grab the end grip, type 10, line increases in length by 10.
But, click on the stretch grip on my block, type 10, block resizes to 10 in that axis.
I am using the word axis as I have a stretch in the x axis and the y axis, but applies to any stretch command in any dynamic block as far as I can determine.
Quote
>>>> Expression: 2*12

stretches the box 24 units as expected

Specify second point or <use first point as displacement>: 'cal

>>>> Expression: (10+2)*3

results as expected

Can't enter a formula in a dynamic block stretch without the 'cal
Try my block, see what you think.
[quote}dynamic block with stretch function constrained to a(n) axis is how I am reading this[/quote]
Correct

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: using 'cal in a stretch grip dialogue box
« Reply #16 on: October 21, 2014, 12:10:18 PM »
WORKS FOR ME AS EXPECTED.....Command:
Specify point location or [Base point/Undo/eXit]: 'CAL

>>>> Expression: 3*(2+5)

Resuming GRIP_STRETCH command.

Specify point location or [Base point/Undo/eXit]: 21


issue is when and or where you enter your value....in the DYN box it will behave NOT as expected
@ command line it will
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #17 on: October 21, 2014, 06:38:45 PM »
Where were you at just before "Specify point location or [Base point/Undo/eXit]: 'CAL"?
In a dynamic block?
I used your expression in a block that was 12", activated stretch, typed 'cal 3*(2+5)and new size was 33, not 21. Is there a setting somewhere that could explain? Screenshot attached.
Thanks for digging into this, appreciate the help

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: using 'cal in a stretch grip dialogue box
« Reply #18 on: October 22, 2014, 08:47:44 AM »
yes, you got what you asked for a block that was already 12 units was stretched 3*(5+2)
12+21=33

where you enter the formula determines your result, in DYN window entered size is the resultant
@ command line current size PLUS the delta change of your formula is the resultant
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #19 on: October 22, 2014, 09:53:41 AM »
Yes BUT if I entered 21 instead of 'cal 3*(5+2) it does not add to the size but replaces the size. This is the effect I am looking for.  Possible or not?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: using 'cal in a stretch grip dialogue box
« Reply #20 on: October 22, 2014, 10:06:30 AM »
yes, depending WHERE you enter the value...in dynamic box it alters to size entered
@ command line it applies formula

so it does BOTH, just know when and where to enter value to get desired result
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #21 on: October 22, 2014, 03:53:34 PM »
I am seeing this exact behavior and agree 100%, BUT...I can't seem to enter at command line when dynamic stretch is active. I put cursor in command line and click, get cursor, but when I start typing it jumps right back to the dynamic dialogue. SO... It seems like this is not going to be an option for me.
Thanks again for the help.
Al

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: using 'cal in a stretch grip dialogue box
« Reply #22 on: October 22, 2014, 04:54:36 PM »
Perhaps turning DYN input OFF when you want to use this method
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #23 on: October 23, 2014, 08:46:55 AM »
Thanks, tried 0,1,2,and 3(default) for DYNMODE, didn't affect results
What I am seeing from trial and error is:
Any 'cal OR command line entry EXCEPT when directly entering value in dynamic stretch dialogue results in the value being added to the existing size, and I think remember back to 2007 or 11 version when ever I started using dynamic blocks that behavior (adding) was typical even in the dynamic dialogue, so I guess this behavior (having the stretch value replace the current size not add to) is really the odd man out, maybe unique to 2014, doesn't look like I can duplicate it with the 'cal command. I wonder if a transparent lisp routine to first set the stretch value to negative current size (resulting in the blocking stretching to 0) and then stretch to the 'cal input could be done? Way over my head...
AL

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: using 'cal in a stretch grip dialogue box
« Reply #24 on: October 23, 2014, 09:28:46 AM »
I can get it to function either way....value is the resultant, and or value is summed to existing and that is the result....

or suggest F12 and just turn DYN off....so you are only using command line entry...If I get time I will make a screen capture video of
what and or how this is functioning for me in 2014
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Albroswift

  • Guest
Re: using 'cal in a stretch grip dialogue box
« Reply #25 on: October 23, 2014, 12:37:19 PM »
Thanks MJ
a step by step how you get value resultant from a 'cal would be awesome.