Open dezmoHU opened 3 months ago
The #stipple method - according the documentation should return String. However it returns Integer.
Execute the example in a doc:
entities = model.active_entities point1 = Geom::Point3d.new(0, 0, 0) point2 = Geom::Point3d.new(20, 20, 20) constline = entities.add_cline(point1, point2) puts constline.stipple
Returns 65535
65535
constline.stipple = "." puts constline.stipple
Returns 34952
34952
(The setter returns String or Integer, according the pattern used. )
Background: I wanted to use it like view.line_stipple = constline.stipple to highlight the hovered cline with a same pattern, but it does not work.
view.line_stipple = constline.stipple
Edit: The String : Integer pairs, just in case...: ;-)
"" : 65535 "." : 34952 "-" : 13107 "_" : 61680 "-.-" : 7239
The #stipple method - according the documentation should return String. However it returns Integer.
Execute the example in a doc:
Returns
65535
Returns
34952
(The setter returns String or Integer, according the pattern used. )
Background: I wanted to use it like
view.line_stipple = constline.stipple
to highlight the hovered cline with a same pattern, but it does not work.Edit: The String : Integer pairs, just in case...: ;-)