Author Topic: Entmake Linetype Help  (Read 3101 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Entmake Linetype Help
« on: April 12, 2010, 10:52:00 AM »
I'm trying to entmake a linetype with no success.

If I tblobjname the linetype, this is what I get:
Code: [Select]
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.

Code: [Select]
(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):
Code: [Select]
(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.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Entmake Linetype Help
« Reply #1 on: April 12, 2010, 11:20:14 AM »
 Don't think you can emake a linetype :-)

-----------   Line Type Loader /  Maker  ----------------
http://www.theswamp.org/index.php?topic=23888.0  LineType Loader by CAB - function to load a list of linetypes
http://www.theswamp.org/index.php?topic=31115.0 Advanced Linetype Loader  by Lee Mac
http://www.theswamp.org/index.php?topic=21339.msg258481#msg258481  LineType maker by RonJ
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Entmake Linetype Help
« Reply #2 on: April 12, 2010, 11:29:14 AM »
Don't think you can emake a linetype :-)

-----------   Line Type Loader /  Maker  ----------------
http://www.theswamp.org/index.php?topic=23888.0  LineType Loader by CAB - function to load a list of linetypes
http://www.theswamp.org/index.php?topic=31115.0 Advanced Linetype Loader  by Lee Mac
http://www.theswamp.org/index.php?topic=21339.msg258481#msg258481  LineType maker by RonJ


I know you can entmake ones without text but I guess you just can't entmake them if they include text.
Oh well, I'll have to take the loading route.
Thanks Alan. :)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox