Folio Posted August 9, 2012 Posted August 9, 2012 I have created a custom linetype using shape for Plugmold like this _____ / / _____ Its works in my PC. But when others open it from their PC it shows like this ____ . . . . . ___. Is there a way to solve this problem? Quote
BIGAL Posted August 10, 2012 Posted August 10, 2012 You must have the custom linetype on all pc's for it to be visible, if sent to somewhere else you need to attach also or etransmit will do it all for you Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 A simple linetype definition (based only on description in a LIN file) will be contained in the drawings, so there are no issues when drawing is accessed on other computer. Seems that your definition is using an associated shape file, so that, as BIGAL also stated, must be shipped along DWG file. Not sure if there is more of that linetype than you shown above, but wouldn't a simple definition help? *FOLIO_TEST,Folio test linetype _____ // _____ // _____ // _____ A,.7,-.15,["//",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.01],.1 Quote
irneb Posted August 10, 2012 Posted August 10, 2012 I'm with Mircea on this. If you make a complex linetype (i.e. one which includes shapes) ... try everything you can to use some character/shape from the default SHX files installed with ACad. Otherwise you keep running into this situation where linetypes display differently on different PC's. The eTransmit idea could solve this (for external parties), but inhouse you'd need to "share" your custom SHX with everyone (either a shared folder or copied to each PC). Even with eTransmit I've found many would simply open the ZIP and double click the DWG file to open it - this would not extract the SHX and thus the linetype would still not work properly. Unfortunately eTransmits are meant for external parties, so you can't say this is simply a training issue (i.e. enforce extract all from ZIP into folder before opening DWG). So for both those reasons, you need to have an extremely strange shape to deal with if you need your own custom SHX. Note you can combine 2 or more shapes on top of each other to make up "strange" shapes instead of making a custom SHX. E.g. this uses the "O" and "X" characters from the Standard text style placed over each other to form an approximation of "⊗": *OX_OVER,OX Overwritten line ---- OX ---- OX ---- OX ---- A,12.7,-5.08,["X",STANDARD,S=2.54,U=0.0,X=-2.54,Y=-1.27],0.0,["O",STANDARD,S=2.54,U=0.0,X=-2.70,Y=-1.27],-3.47 Instead of using a UniCode font (e.g. The Arial Unicode is not installed by defaullt and if you include it in an eTransmit the TTF file is 22MB just for the one character you'll use - instead of the ANSI version which is always installed and only 778kB - I'm sure people will hate you if all your eTransmits are at least 22MB). Quote
irneb Posted August 10, 2012 Posted August 10, 2012 Sorry, the above should be changed to use Relative rotation instead of Upright rotation. Otherwise if the line goes from right-to-left the O and X do not align correctly. So the linetype should look like this instead (changes marked in red): *OX_OVER,OX Overwritten line ---- OX ---- OX ---- OX ---- A,[color=seagreen]12.7[/color],[color=seagreen]-5.08[/color],["X",STANDARD,S=[color=seagreen]2.54[/color],[color=red]R[/color]=0.0,X=[color=seagreen]-2.54[/color],Y=[color=seagreen]-1.27[/color]],0.0,["O",STANDARD,S=[color=seagreen]2.54[/color],[color=red]R[/color]=0.0,X=[color=seagreen]-2.70[/color],Y=[color=seagreen]-1.27[/color]],[color=seagreen]-3.47[/color] Note values calculated for ISO in mm ... if you need it for Imperial in Inches divide each length and scale value by 25.4. (affected values marked in green) Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 Using "R" instead of "U" key will also ensure compatibility with older releases of AutoCAD where the last one isn't supported. Quote
nod684 Posted August 10, 2012 Posted August 10, 2012 That's because other pc's don't have the shape that you used Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 When I etransmit the file , I see the shx file attached. But when I open the cad file in other pcs, the linetype that was assigned does not display. A simple linetype definition (based only on description in a LIN file) will be contained in the drawings, so there are no issues when drawing is accessed on other computer. Seems that your definition is using an associated shape file, so that, as BIGAL also stated, must be shipped along DWG file. Not sure if there is more of that linetype than you shown above, but wouldn't a simple definition help? Code: *FOLIO_TEST,Folio test linetype _____ // _____ // _____ // _____ A,.7,-.15,["//",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.01],.1 Regards, Mircea If I use this code, when I etransmit will it be attached? Or will I have to seperately attach. Im confused!! Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 If you want to use that linetype definition you need to append the code above to your acad.lin or acadiso.lin file. After save the file call LINETYPE command and load it. Once loaded in a drawing it will be embedded inside it and therefore don't need to pay attention to ship along. Just try to use it in a drawing, save it and open it on other workstation. By the way, below each post there is a "Quote" button that should be used to embed into your replay someone's message. Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 Thank you Mircea! I have one more question, when I assign the linetype and when it loadsin the drawing with linetype scale 1 the shape ____ / / ____ is really big. How do I scale it down but keeping the linetype scale as 1? Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 Something like this? *FOLIO_TEST,Folio test linetype _____ // _____ // _____ // _____ A,.7,-.15,["//",STANDARD,S=.05,R=0.0,X=-0.1,Y=-.01],.1 Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 Thanks, In the code, which one is to change the frequency of the / / ? Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 Not sure that understand? Is about the length of the line between "//"? Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 Also in the code, could you explain what each thing stands for? like A, .7- length of the line(for example), -.15?, Thanks so much! Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 Not sure that understand? Is about the length of the line between "//"? Yes! like I want to reduce the line between two // ____ //, so that I can have more of / / Quote
MSasu Posted August 10, 2012 Posted August 10, 2012 Try to adjust the numbers one at the time, reload the linetype and will see how each influence the definition. The numbers outside the square brackets control the length of line, respectively the left/right offsets around the label; while square brackets contain the text part's features: content, text style, size, rotation and position. To adjust the size of line part: *FOLIO_TEST2,Folio test linetype 2 _____ // _____ // _____ // _____ A,[color=magenta].3[/color],-.15,["//",STANDARD,S=.05,R=0.0,X=-0.1,Y=-.01],.1 Quote
Folio Posted August 10, 2012 Author Posted August 10, 2012 Thank you so so much Mircea and everyone! It worked like magic! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.