out of curiosity, not saying it is wrong or I would know why ![:wink: 😉](https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=fe137e50c39)
Yesterday evening, for testing, I did the same change for make_atext as it stands in make_mtext and then it worked.
For ***make_text ***and make_mtext you assigned the variable cp:
if string.tr(' ','').gsub(/\\P/,'')==""
string=""
***cp = gents.add_cpoint(ORIGIN)***
puts "Empty String = Cpoint"
next
#height=100.mm
end#if
###
bold=false;italic=false
###
begin
###
gents.add_3d_text(string,align,font,bold,italic,height,0.0,0.0,true,thick) if string && string !=""
rescue Exception => ex
puts ex
ensure ### ?
end
next unless gp.valid?
***cp.erase! if cp && cp.valid?*** # we don't need a cpt inside text??
But for make_atext, you commented out the line causing errors:
if string.tr(' ','').gsub(/\\P/,'')==""
string=""
***gents.add_cpoint(ORIGIN)***
puts "Empty String = Cpoint"
next
end#if
string=string.strip.gsub(/\\P/,"\n")### replace \P with \n
###
bold=false;italic=false
###
begin
gents.add_3d_text(string,align,font,bold,italic,height,0.0,0.0,true,thick) if string && string !=""
rescue Exception => ex
puts ex
ensure ### ?
end
next unless gp.valid?
***#cp.erase! if cp && cp.valid?*** # we don't need a cpt inside text??