I'm trying to entmake a linetype with no success.
If I tblobjname the linetype, this is what I get:
Command: (ENTGET (TBLOBJNAME "LTYPE" "PROP-SEWER"))
((-1 . <Entity name: 7e5ec218>) (0 . "LTYPE") (330 . <Entity name: 7dd0ec28>)
(5 . "2C90B") (100 . "AcDbSymbolTableRecord") (100 . "AcDbLinetypeTableRecord")
(2 . "PROP-SEWER") (70 . 0) (3 . "---- SS ---- SS ---- SS ---- SS ---- SS
----") (72 . 65) (73 . 3) (40 . 1.27) (49 . 1.0) (74 . 0) (49 . -0.12) (74 . 2)
(75 . 0) (340 . <Entity name: 7e5ec1b0>) (46 . 0.08) (50 . 0.0) (44 . -0.06)
(45 . -0.04) (9 . "SS") (49 . -0.15) (74 . 0))
However, if I try and create the linetype, it just returns nil.
(entmakex '((0 . "LTYPE")
(100 . "AcDbSymbolTableRecord")
(100 . "AcDbLinetypeTableRecord")
(2 . "PROP-SEWER")
(3 . "---- SS ---- SS ---- SS ---- SS ---- SS ----")
(70 . 0)
(72 . 65)
(73 . 3)
(40 . 1.27)
(49 . 1.0)
(74 . 0)
(49 . -0.12)
(74 . 2)
(75 . 0)
(46 . 0.08)
(50 . 0.0)
(44 . -0.06)
(45 . -0.04)
(9 . "SS")
(49 . -0.15)
(74 . 0)
)
)
I've noticed that I can't find where to specify the textstyle to use. Is that what I'm missing?
Here's the textstyle (which works):
(entmakex '((0 . "STYLE") (100 . "AcDbSymbolTableRecord") (100 . "AcDbTextStyleTableRecord")
(2 . "LT-P") (70 . 0) (40 . 0.0) (41 . 1.0) (50 . 0.0) (71 . 0) (42 . 8.0) (3 . "ARIALNI.TTF") (4 . "")))
I know it will return nil if it already exist, but I've even changed the name and I can't get it to work. I want this to create the specified textstyle/linetype/layer if it doesn't exist in the drawing.
Any help on this would be greatly appreciated. Thanks guys.