Hello
Is it possible to remove the first element in an array?
What I mean is if I have an array in GC with [0,1,2,3,4,5] and I want to remove [0] from my drawing so that technically [1] becomes [0]. So my final array will be [0,1,2,3,4]. Is this possible in a simple way?
What I am trying to do is something that I usually can solve with Line.ByLacing where I can move the position index around, so make the lines do what I want, between two asymmetric arrays. But in this case it is not possible. It would be best if it was possible to just remove one element from the array.
Hope I explained my problem in an understandable way.
/OutOfTime007
My problem could be solved by using Sublist(point01,1).
Basic first lesson GC stuff. Typical. :)
Answer Verified By: Michael Dalsgaard
I am glad you found the answer yourself!
Alternatively you could use RemoveAt(point01, 0), or MembersAt(point01, Series(1, point01.Count - 1, 1)).
Good luck with your work!
Volker
point1.RemoveAt(12)why is dosnt work ?
Hi Ehsan,
We will look into why it does not work.
Work around: use point1.ToList().RemoveAt(12).
The addition of the ToList() method on point1 lets RemoveAt do its job.