Write to excel

Hi ,

new user to Bentley generative Components. i am trying to explore how to write to excel say set of coordinates from existing elements/cell. i have managed to read from excel thanks to various support from users in this forum. however im having trouble writing to excel.  i have done quite a lot of such similar activities in Revit Dynamo side, but in GC i am finding it difficult to write to excel. i have attached an image below for reference.

Could someone please point out as to how the data / value structure should be say coordinates XYZ to be written to excel or even just X values or any value for that matter.  do i need to flatten the list ? if so how can i do that. any help would be appreciated. some reference or snapshot as examples would also help

thanks again

Parents Reply
  • Hi Anik,

    yes , you are right about that. thanks again for that clarification

    one question along same line. lets say there might be many rows say 50 rows of coordinate data, columns would obviously still be just 3 A, B, C( corresponding to XYZ). but how would i then be able to make it dynamic in range address, so that i can anticipate even if the team uses a large set of data from excel. currently i am doing is  'A1:C6' based on if i have 6 point or change to 8 or 10 obviously if the number of points dont match the range address its writes NA in excel in those rows. 

    but how can i use say count option & make sure my range address adjust based on list of points. any ideas??

Children