@tig said:
@bep said:
Hello Tig,
I am getting this message in the ruby console.
Am i doing something wrong?
m=Sketchup.active_model;es=m.active_entities;ss=m.selection;ss.to_a.each{|e|next if e.class!=Sketchup;;Edge;id=e.get_attribute("Unfold","edge_id",nil);next if !id; pt=e.start.position.offset(e.line[1],e.length/2);es.add_text(id.to_s,pt,[0,0,0])}
> > Error; #<NoMethodError; undefined method `active_m' for Sketchup;Module>
> > (eval);184[/ruby]
Bep
Sorry
A typo crept in between testing and posting...
The correct code 'm=Sketchup.active_model**;**' has now been edited in...
hi i've tried the ruby console code but nothing happened and there is still no number on the faces =s when i write the code in the ruby i have this message :
m=Sketchup.active_model;es=m.active_entities;ss=m.selection;ss.to_a.each{|e|next if e.class!=Sketchup::Edge;id=e.get_attribute("Unfold","edge_id",nil);next if !id; pt=e.start.position.offset(e.line[1],e.length/2);es.add_text(id.to_s,pt,[0,0,0])}
[#Sketchup::Group:0x1e45fad8]
but no number is it normal ? i work on mac maybe it's the problem? i don't know but pleasee help meeeee