write ObjectARX code for a custom line entity with a text of length of it's appear at mid of the line entity.
def create_line(length, text): return "acdbLine l1(acdbGetPoint(0,0,0), acdbGetPoint("+length+",0,0)); l1.setTextString("+text+");" create_line("200", "line custom")