TheSwamp
CAD Forums => CAD General => Topic started by: tedg on September 15, 2015, 10:42:26 AM
-
I don't know how long this has been a problem, but my linetypes that use LTYPESHP.SHX don't seem to find this file or the linetypes themselves have a problem.
I get a "Bad definition of FENCELINE1 at line 119 of the..." and so on all of those.
Anyone know what could be wrong?
Can anyone tell me where the LTYPESHP.SHX file is supposed to be?
I have the LTYPESHP.SHX in the support folder (and for giggles I put it in the fonts folder, but I don't think it should be there)
C:\Users\<me>\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\enu\support
and
C:\Program Files\Autodesk\AutoCAD 2014\Fonts
Thoughts?
Thanks
-
C:\Users\mfarrell\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\enu\Support
check support path(s) in OPTIONS
-
If this finds the ltypeshp.shx .. then it's probably something else throwing the error.
-
Thanks guys, yes, I do have that path (second in line) in my support paths, and ronjonp's code kicked back that very path.
So now what?
I don't believe I changed anything with those linetypes, I have an OOTB copy too that gives me the same error messages.
-
Maybe post a sample drawing?
-
Maybe post a sample drawing?
I had a coworker send me his acad.lin and ltypeshp.shx files and I placed them in the support folder and am getting the same issue.
Attached is a drawing and some screen shots. you'll see the fenceline1 is a dashed line without the circles for me anyway.
-
PROBLEM IS....
LTYPESHP.shx is a shape file, not a text font file.
-
That file works fine for me...
-
That file works fine for me...
Ok thanks.
I tried the same files and paths that others use without an issue for them...
I made sure the support path is there,
What else in an Acad set up be causing this?
I also made sure there were no "copies" of these files anywhere else in my support paths
-
Just for grins, can you load and use the SHAPEs via the LOAD command for the shx, and the SHAPE command to place a named shape from it?
-
Probably the shape CIRC1 does not exist.
If someone has changed the linetype in the LIN file and added a new shape to the SHX File, both files has to be distributed. Linetypes get saved inside the drawing once they are loaded, but shapes are not.
It is better to not add shapes to a default AutoCAD SHX file, instead create a new SHX file. If you miss that file, you only get the message that the SHX could not be found, but no linetype errors.
-
Just for grins, can you load and use the SHAPEs via the LOAD command for the shx, and the SHAPE command to place a named shape from it?
Thanks cadtag.
Interesting...
It will allow me to load ltypeshp.shx, but any shape I try to place, it says "not found".
HOWEVER... if I rename that same file and load it, it WILL allow me to place a shape??
WTF?
Command: LOAD <ltypeshp.shx>
Command: SHAPE Enter shape name or [?]: circ1
Shape CIRC1 not found.
Command: LOAD <ltypeshp1.shx>
Command: SHAPE Enter shape name or [?]: circ1
Specify insertion point:
-
Shameless plug but you could just make a waaayyy cooler linetype (http://www.theswamp.org/index.php?topic=47058.msg520876#msg520876) that does not rely on shapes :)
-
Shameless plug but you could just make a waaayyy cooler linetype (http://www.theswamp.org/index.php?topic=47058.msg520876#msg520876) that does not rely on shapes :)
Cool man.
I agree, I tend to use line types with standard text styles/fonts, but this is someone else's drawing, probably why I didn't have an issue until now.
An UPDATE on my last post, to hopefully help troubleshoot the actual problem..
If I keep the renamed "ltypeshp1.shx" in my support folder and change the name of that file in the Acad.lin file for the (5) line types using that file, it works!
In other words, My AutoCAD has an issue with the file name "ltypeshp.shx" not the file
-
In other words, My AutoCAD has an issue with the file name "ltypeshp.shx" not the file
I know how it feels. I have a issue with you calling yourself a Ted. :-P :whistling: :-D
-
In other words, My AutoCAD has an issue with the file name "ltypeshp.shx" not the file
See, obviously you're just not drinking enough. Or I'm not. Damn I hope that kumquat tequila is ready soon....
-
In other words, My AutoCAD has an issue with the file name "ltypeshp.shx" not the file
I know how it feels. I have a issue with you calling yourself a Ted. :P :whistling: ;D
Well at least I don't obscure the truth with an ambiguous username :P
-
Shameless plug but you could just make a waaayyy cooler linetype (http://www.theswamp.org/index.php?topic=47058.msg520876#msg520876) that does not rely on shapes :)
Cool man.
I agree, I tend to use line types with standard text styles/fonts, but this is someone else's drawing, probably why I didn't have an issue until now.
An UPDATE on my last post, to hopefully help troubleshoot the actual problem..
If I keep the renamed "ltypeshp1.shx" in my support folder and change the name of that file in the Acad.lin file for the (5) line types using that file, it works!
In other words, My AutoCAD has an issue with the file name "ltypeshp.shx" not the file
That is strange that renaming the the file fixes the problem. It sounds to me like you have a messed up file somewhere.Have you tried putting "C:\\Users\\<Username>\\appdata\\roaming\\autodesk\\autocad 20XX\\rXX.X\\enu\\support\\ltypeshp.shx" at the top of your support paths ?
-
Thanks ronjonp, I tried changing/repathing that, didn't help or change.
I did however, find this thread (http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Bad-definition-of-FENCELINE1-at-line-XXX-when-loading-a-linetype.html) which I believe solved my problem.
For some reason, I had a handful of text styles loaded in my default template (that I don't know where they came from), one of which was looking for "ltypeshp.shx". And so that seemed to be tripping up any other drawing I worked on
Once I deleted that from my drawing (and template), restarted AutoCAD, everything works as it should with the line types and shape files.
Hope this helps someone, more to follow I assume.
-
Glad you got it sorted :)
-
The LTYPESHP.SHX that comes with AutoCAD is a shape file, not a text font file. If you load a drawing where a text style incorrectly uses LTYPESHP.SHX, then from that point on until you exit out and restart AutoCAD, in every drawing you open, AutoCAD will not read LTYPESHP.SHX correctly. For example, I open this drawing called WKS_COPY.DWG and as it loads I get an error message reading
ltypeshp.shx is a shape file, not a text font file.
Now I open a second drawing called BR.DWG, where there are complex linetypes that use the shapes defined in LTYPESHP.SHX. One of them is a linetype for a fence line that ordinarily shows a line with little circles in it, like this: ----O-----O-----O---- where the little circles are shapes. But since I had opened that other drawing first which incorrectly tried to use LTYPESHP.SHX as a text font, in the second drawing BR.DWG, those linetypes are displayed without the circles: ----- ------ ------ ---- . The only way I have figured out to make those linetypes display properly in BR.DWG is to exit out and restart AutoCAD, and open BR.DWG first before I open WKS_COPY.DWG. I see this behavior in AutoCAD 2007 and AutoCAD 2016.
-
The LTYPESHP.SHX that comes with AutoCAD is a shape file, not a text font file. If you load a drawing where a text style incorrectly uses LTYPESHP.SHX, then from that point on until you exit out and restart AutoCAD, in every drawing you open, AutoCAD will not read LTYPESHP.SHX correctly. For example, I open this drawing called WKS_COPY.DWG and as it loads I get an error message reading
ltypeshp.shx is a shape file, not a text font file.
Now I open a second drawing called BR.DWG, where there are complex linetypes that use the shapes defined in LTYPESHP.SHX. One of them is a linetype for a fence line that ordinarily shows a line with little circles in it, like this: ----O-----O-----O---- where the little circles are shapes. But since I had opened that other drawing first which incorrectly tried to use LTYPESHP.SHX as a text font, in the second drawing BR.DWG, those linetypes are displayed without the circles: ----- ------ ------ ---- . The only way I have figured out to make those linetypes display properly in BR.DWG is to exit out and restart AutoCAD, and open BR.DWG first before I open WKS_COPY.DWG. I see this behavior in AutoCAD 2007 and AutoCAD 2016.
check your fontalt setting
-
The LTYPESHP.SHX that comes with AutoCAD is a shape file, not a text font file. If you load a drawing where a text style incorrectly uses LTYPESHP.SHX, then from that point on until you exit out and restart AutoCAD, in every drawing you open, AutoCAD will not read LTYPESHP.SHX correctly. For example, I open this drawing called WKS_COPY.DWG and as it loads I get an error message reading
ltypeshp.shx is a shape file, not a text font file.
Now I open a second drawing called BR.DWG, where there are complex linetypes that use the shapes defined in LTYPESHP.SHX. One of them is a linetype for a fence line that ordinarily shows a line with little circles in it, like this: ----O-----O-----O---- where the little circles are shapes. But since I had opened that other drawing first which incorrectly tried to use LTYPESHP.SHX as a text font, in the second drawing BR.DWG, those linetypes are displayed without the circles: ----- ------ ------ ---- . The only way I have figured out to make those linetypes display properly in BR.DWG is to exit out and restart AutoCAD, and open BR.DWG first before I open WKS_COPY.DWG. I see this behavior in AutoCAD 2007 and AutoCAD 2016.
Boom ---> This right here ^^^^^^^^^^^^^^^^^ Is what I came to say (red bold is mine)