Hi guys!
I was trying to add a line type from a .lin file to my drawing but when I send it to someone he dont see it unless he have the .lin files.
Can we add linetype into the template file directly ?
This woul be a real time saver.
Thanks!
Not Custom lines containing custom shapes, the .shx file must be sent along with the .lin for the receiving party to display the lines correctly.
They will also need to map the shx location in support file search path.
I was trying to add a line type from a .lin file to my drawing but when I send it to someone he dont see it unless he have the .lin files.
Can we add linetype into the template file directly ?
Linetypes ARE stored in the DWG file.
As @Jay_B points out however, if the linetype is a complex linetype, then it will contain references to either (A) a shape in a shape file, or (B) a textstyle.
If (A), then you'll need to send the SHX (shape) file and it will have to be "found" on the receipients machine (it can go in the same folder as the DWG file).
If (B), then it will most likely work since the textstyle will be present in the drawing. The exception would be if the font referenced by the text style is not available _and_ there is no alternate font set that contains the same characters used in the linetype definition. In that case, you'd have to send the SHX (font) file or the TTF font file (note that some fonts are protected by copyright, check before sharing).
There is a way to not have to send any addition files, but it's destructive so I would not recommend unless all parties are aware of the consequences. Explode the complex linetype into native cad entities.
And even IF/WHEN a linetype does contain references to BOTH a shx and a text style, I've never heard of acad requiring the actual lin file.
The acad dwg file contains a linetype definition that tells it:
Once you've loaded a linetype in, it shouldn't ever need the lin file -- unless you want to add another linetype from it. Even if the shx file is not found, it should still draw the gaps & dashes and even draw text regardless of having the correct style. If it can't find the correct style, I beleive it uses "Standard".
Here's a quick sample. First I created a new dwg file and drew a line that uses the FENCELIN2 linetype which uses a shape from ltypeshp.shx
Here's what looks like:
Then I temporarily renamed my lin & shx files so that acad wouldn't be able to find them and re-opened my dwg file.
This is what it looks like after:
Don Ireland
Engineering Design Technician
Can't find what you're looking for? Ask the community or share your knowledge.