I want to display the value of a face area in Layout using Ruby.
I add a label to my face using AutoText for Fae area and the value is displayed correctly in Layout
But now I want to print this area in the Ruby Concole.
Here is the code
SKETCHUP_CONSOLE.clear
doc = Layout::Document.open("D:/Documents/Salle de bains 09-10.layout")
pages = doc.pages
for page in pages
puts "PAGENAME : " + page.name
for entity in page.entities
if(entity.is_a? Layout::Label)
puts entity
puts "* LABEL ENTITY"
lines = entity.text.display_text.split(/\n+|\r+/).reject(&:empty?)
puts " - DISPLAY TEXT : "
for line in lines
puts " . " + line
end
end
end
end
Unfortunately "<FaceArea>" is printed instead of the value of the area in the Ruby console any suggestion to print the value of the area ?
Regards



