We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2019-01-24 07:03 AM
Solved! Go to Solution.
2019-01-29 05:54 PM
dim setval[] for i = 1 to n if i > vardim1(val) then setval = 0 else setval=val endif next i val = setval parameters val = val
n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", _isFirstRun)It appears to be that this past line was preventing the arrays from being updated, and to by pass any issue that may result from consecutive value deletion you have to put a time stamp, as have been explained in other threads in this forum.
2019-01-24 08:58 AM
2019-01-24 10:56 AM
2019-01-24 11:31 AM
2019-01-25 02:04 AM
2019-01-25 02:07 AM
2019-01-25 02:22 AM
!j1: Wall !j2: Beam !j3: Column !j4: Handrail !j5: Other _profile_types = 0 if bEnableWall then _profile_types = _profile_types + 1 if bEnableBeam then _profile_types = _profile_types + 2 if bEnableColumn then _profile_types = _profile_types + 4 if bEnableRail then _profile_types = _profile_types + 8 if bEnableOther then _profile_types = _profile_types + 16 VALUES "myProfileIdx" PROFILETYPES_MASK _profile_types
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2019-01-25 02:41 AM
2019-01-25 03:01 AM
if GLOB_UI_BUTTON_ID > 1000000 then n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", _isFirstRun) !<-- prevents unnecessary consecutive entries if _isFirstRun then dim _ap_openingLintel[][], _ap_openingLintelHieght[][], !<-- create dummy containers _ap_openingsX[][], _ap_openingsY[][], _ap_openingSizeX[][], _ap_openingSizeY[][] parameters _delItem = (GLOB_UI_BUTTON_ID - 1000000), !<-- Index of the desired opening to delete _count = 1 for _i = 2 to vardim1(ap_openingLintel) step 1 if _i # _delItem then parameters _ap_openingLintel[_i][1] = ap_openingLintel[_count][1], _ap_openingLintelHieght[_i][1] = ap_openingLintelHieght[_count][1], _ap_openingsX[_i][1] = ap_openingsX[_count][1], _ap_openingsY[_i][1] = ap_openingsY[_count][1], _ap_openingSizeX[_i][1] = ap_openingSizeX[_count][1], _ap_openingSizeY[_i][1] = ap_openingSizeY[_count][1], _count = _count + 1 endif next _i parameters ap_openingLintel = "", ap_openingLintelHieght = 0, ap_openingsX = 0, ap_openingsY = 0, ap_openingSizeX = 0, ap_openingSizeY = 0 endif endif
2019-01-28 04:16 PM