From: blue orchid Date: 2011-10-10T00:41:07+09:00 Subject: Re: Ruby and MySQl Sketchup.active_model.entities.each {|entity| if entity.entityID == 2349 and c=='2' entity.material = "green" break end } if entity.entityID == 2349 and c=='3', then that entity in google sketchup changes to color green. But if I use c==2 or c==1 instead of c==3, then the entity does not change its color. The reason may be that it failed to identify all the data in the table 'condition_rating'. It only works for last column i.e. ('Superstructure',2353,3). So I would like to know what is the appropriate script so that it selects all data from table. -- Posted via http://www.ruby-forum.com/.