I’m going thru the example and I love it but I’m having some errors and some doubts. I’m trying to read a desks file with 53 desks. I have the desks.txt file created following your model but I don’t know if the format (you use dot as decimal separator and I’m using only the number with no fraction) makes the plugin to raise an error. My desks file starts like:
And has 53 lines. I’ve also modified the activity strings but I see it fails before loading the activities.
with this error
num_desks:53 dx:527.0 dy:611.0
Error: #<NoMethodError: undefined method
chomp' for nil:NilClass> /Users/JP/Downloads/desk_activity.rb:21:inblock in spirix_desk_activity’
block in <top (required)>' SketchUp:1:incall’
Also, besides that, in my case, the number of activity periods will be variable (can be from maximum 96 to 10) but is unknown.
Can’t the input file be a single one, with the first line with all the desks coordinates for a given period, then the following line with the activity state for the preceding desks, and so on as many periods I have?
Just my questions right now I have to study it more.
Thanks a lot again