Home › Forums › Problems and solutions in GDL › Lists and schedules › Error changing value in schedule
- This topic has 5 replies, 2 voices, and was last updated 4 years, 3 months ago by
Kristian Bursell.
-
AuthorPosts
-
-
November 14, 2018 at 06:25 #4328
Kristian Bursell
ParticipantSome users are reporting errors in that the 2D representation (in plan window) disappears when a parameter value is edited via an Interactive Schedule. I cannot replicate the issue but have heard of it before.
Has anyone else experience this issue and is there a known solution?
CADSWIFT
Australia -
August 12, 2019 at 07:48 #18049
Kristian Bursell
ParticipantThis issue has arisen again and I need to fix is. I am thankfully getting an error message now.
The error message is reporting “Incompatible Array Dimensions” however I cannot fixed the problem.
I use dynamic arrays extensively and
Example of script below with the error line being “xVPanel = _xVPanel”:dim _xVPanel[1][]
for i = 1 to vertpan_numb
if i > vardim2(xVPanel) then
_xVPanel[1][i] = .160
else
_xVPanel[1][i] = xVPanel[1][i]
endif
next ixVPanel = _xVPanel
parameters xVPanel = xVPanel
thanks,
KristianCADSWIFT
Australia -
August 12, 2019 at 10:38 #18050
Péter Baksa
KeymasterHi Kristian,
I only get this error when the array parameter is one-dimensional in the libpart editor. Change it two two-dimensional by inserting a column.
One and two-dimensional dynamic arrays are not interchangeable.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
August 13, 2019 at 12:50 #18057
Kristian Bursell
ParticipantThanks Péter,
The arrays that are in the error are two-dimensional but they being generated by other arrays that are one dimensional so perhaps the trail will lead back to them.
The object has many 1D arrays such that it will be a large job to convert them all. Is there are known reason and a possible work around, other than changing all arrays to 2D?CADSWIFT
Australia -
August 15, 2019 at 08:23 #18059
Péter Baksa
KeymasterWhy are you using a two-dimensional array with the first dimension size only 1? Is that only for the example?
Possible workaround: the parameters are dynamic arrays too. You can append items to it beyond its current size.
si = vardim2(a2) if n > si then for i = si + 1 to n a2[1][i] = -1 next i parameters a2 = a2 endif
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
August 19, 2019 at 23:37 #18091
Kristian Bursell
ParticipantThe reason for the 2D array with the first dimension set to 1 is only because i am using it for space between vertical frame elements, so its not necessary, its just easier for me to read.
I will make some changes based on your advice and hopefully get the issue resolved.
Thanks for your help
CADSWIFT
Australia
-
-
AuthorPosts
- The forum ‘Lists and schedules’ is closed to new topics and replies.