Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Observations (2'-12" in Interactive Schedule?)

Anonymous
Not applicable
Hi all. My colleague asked me today if there was a fix for this yet. (see links below) I told him that I could make Excel prompt him when it happens but I was hoping I could prompt him in AC before he sent the schedule to Excel. I was messing around with the lengths of the fill object and found this.

Working in decimal inches in plan, I found that the schedule would display 2'-12" if I manually typed in a length from 23.993" to 23.999".

One thought that occurred to me was the cursor snap range. Is it possible for a larger range to create this situation?

As far as a workaround, is there a way to have the script round up the A parameter to the nearest sixteenth of an inch based on these few thousandths of an inch? If nothing else then if the script could determine if A is within this range then maybe I could have it change the fill to alert the user.

Not sure if any of this will help create a fix but figured I'd share.

My post:
http://archicad-talk.graphisoft.com/viewtopic.php?p=258122&highlight=schedule#258122

Steve Jepson's post:
http://archicad-talk.graphisoft.com/viewtopic.php?p=260262&highlight=312#260262

Doug
3 REPLIES 3
Anonymous
Not applicable
Well, this is what I came up with. (see below) I put this in the parameter script and it seems to work fine. I'm glad I only had to go to 18'! Which leads me to another question. This is the only way I could think to script it. Is there another way that requires fewer lines of script? A condensed version maybe. It's done so I guess it doesn't matter but just wondering for future reference.

Thanks,
Doug

PS. Now it's time to grab a cold one and watch the race!!

PARAMETERS PLAN_FILL = 16

IF A > 11.992" AND A < 12" THEN !SHORT OF 1'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 23.992" AND A < 24" THEN !SHORT OF 2'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 35.992" AND A < 36" THEN !SHORT OF 3'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 47.992" AND A < 48" THEN !SHORT OF 4'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 59.992" AND A < 60" THEN !SHORT OF 5'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 71.992" AND A < 72" THEN !SHORT OF 6'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 83.992" AND A < 84" THEN !SHORT OF 7'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 95.992" AND A < 96" THEN !SHORT OF 8'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 107.992" AND A < 108" THEN !SHORT OF 9'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 119.992" AND A < 120" THEN !SHORT OF 10'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 131.992" AND A < 132" THEN !SHORT OF 11'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 143.992" AND A < 144" THEN !SHORT OF 12'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 155.992" AND A < 156" THEN !SHORT OF 13'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 167.992" AND A < 168" THEN !SHORT OF 14'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 179.992" AND A < 180" THEN !SHORT OF 15'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 191.992" AND A < 192" THEN !SHORT OF 16'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 203.992" AND A < 204" THEN !SHORT OF 17'
PARAMETERS PLAN_FILL = 21
ENDIF

IF A > 215.992" AND A < 216" THEN !SHORT OF 18'
PARAMETERS PLAN_FILL = 21
ENDIF
Gergely Feher
Graphisoft
Graphisoft
4thorns wrote:
Is there another way that requires fewer lines of script? A condensed version maybe. It's done so I guess it doesn't matter but just wondering for future reference.
I would try something like this:
_a = A - INT(A/12") * 12"
if _a > 11.992" and _a < 12" then
    plan_fill = 21
    parameters plan_fill = plan_fill
endif
_________________
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE
Anonymous
Not applicable
Hi Gergely. Thank you for the reply.

I Just got a chance to try this and except for 1 thing that I should have mentioned it is perfect. After the user is prompted by the fill change that there is a problem he corrects the length of the piece. At this point the fill should revert back to a default (I use "Air Space"). I originally set it up so that the user could choose the fill but decided that it is not really necessary in this case. I'm sure that it could be set up so that the user could set his own fill as long as the length is outside of the rule created by the script but at this point I don't see the need.

Below is your script with a slight tweak that seems to work fine.

Thanks again,

Doug

_a = A - INT(A/12") * 12"
if _a > 11.992" and _a < 12" then
plan_fill = 24
ELSE
parameters plan_fill = 16
endif