stretch in increments

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-16 05:48 PM
‎2004-05-16
05:48 PM
say 8" ?
ArchiCAD 4.5 --- 27 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-16 05:52 PM
‎2004-05-16
05:52 PM
To clarify , I would like the Hotspots to snap to increments as the object is stretched.
ArchiCAD 4.5 --- 27 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-16 06:37 PM
‎2004-05-16
06:37 PM
RandyC wrote:May be this solution
Is it possible to have an object stretch (snapping to ) by an increment of
say 8" ?
Parameter script:
cellSize=8"
VALUES "A" RANGE [cellSize, ] STEP cellSize, cellSize
VALUES "B" RANGE [cellSize, ] STEP cellSize, cellSize
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-16 06:49 PM
‎2004-05-16
06:49 PM
The RANGE function definitely works. I have used it myself and it is VERY cool. I don't remember the exact syntax, but if anyone has more questions I'll look into it.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-17 02:03 AM
‎2004-05-17
02:03 AM
THANKS , OLEG & MATTHEW the range function did the trick !
Randy Clarkston
WestCoast Design
Randy Clarkston
WestCoast Design
ArchiCAD 4.5 --- 27 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-17 04:10 PM
‎2004-05-17
04:10 PM
Apologies if this is obvious,
You can also code explicit values for A, B, & ZZYZX for things (equipment, furniture?) that only come in certain sizes, aren't indefinitely extensive, and/or don't change size on a consistent interval. E.g.,
You can also code explicit values for A, B, & ZZYZX for things (equipment, furniture?) that only come in certain sizes, aren't indefinitely extensive, and/or don't change size on a consistent interval. E.g.,
!bed widths VALUES 'A' 39", !twin 54", !Full 60", !Queen 76" !KingYou can also bind values in different lists together using GLOB_MODPAR_NAME.
!water heater dimensions !gallon size VALUES 'galq' 30, 50, 75, 100, 120 !diameter VALUES 'A' 22", 24", 26", 28", 30" !height VALUES 'ZZYZX' 48", 60", 74", 76" IF GLOB_MODPAR_NAME='galq' THEN IF galq=30 THEN PARAMETERS A=22" PARAMETERS ZZYZX=48" ENDIF IF galq=50 THEN.... IF GLOB_MODPAR_NAME='A' THEN IF A=22" THEN PARAMETERS galq=30 PARAMETERS ZZYZX=48" ENDIF IF A=24" THEN...So the user can choose the size from the list or stretch the diameter and the related parameters update.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-17 05:48 PM
‎2004-05-17
05:48 PM
James wrote:Is it possible to combine the GLOB_MODPAR_NAME with a VALUES statement in the IF THEN test ?
You can also bind values in different lists together using GLOB_MODPAR_NAME.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-05-17 08:18 PM
‎2004-05-17
08:18 PM
Geoffroy wrote:Conditional VALUES lists are OK in general, in my experience. I put all lists in the Master Script, it's more consistent than the Parameter Script.
Is it possible to combine the GLOB_MODPAR_NAME with a VALUES statement in the IF THEN test ?
Do you mean,
IF GLOB_MODPAR_NAME='name1' THEN VALUES 'A' 1',2',3' IF GLOB_MODPAR_NAME='name2' THEN VALUES 'A' 4',5',6'It seems to work; I've never done it in practice. There can't be a VALUES statement for the parameter that's NOT part of a conditional. IE, don't do this:
VALUES 'A' 7',8',9' IF GLOB_MODPAR_NAME='name1' THEN VALUES 'A' 1',2',3' IF GLOB_MODPAR_NAME='name2' THEN VALUES 'A' 4',5',6'Then there's two lists for the same parameter, which, not surprisingly, gives unpredictable results.
One more thing: Parameter updating seems to get unreliable when stretching vertically in 3D. This works fine in the settings box:
IF GLOB_MODPAR_NAME='ZZYZX' THEN IF ZZYZX=1' THEN PARAMETERS modelname='Short' IF ZZYZX=3' THEN PARAMETERS modelname='Tall' ENDIF...but can't relied on in 3D.