squareknees Posted November 30, 2015 Share Posted November 30, 2015 I continue to get errors in my hatch patterns that I have found on the internet. I have one where the error said missing parameter in line 2 now it says missing parameter in line 3. other then reading the code there has to be a way to run these numbers through a program that could tell you what is wrong. I have dozens of hatch patterns with errors. *arab3, 30,.05,.52886751,.52885,.9160254,.25055535,-.1,.18340174,-.1,.3660254,-.05771752 330,.53304304,.74998249,.52885,.9160254,.25055535,-.1,.18340174,-.1,.3660254,-.05771752 270,.9660254,.44226497,.52885,.9160254,.25055535,-.1,.18340174,-.1,.36602454,-.05771752 30,.05,.47113249,.52885,.9160254,.3660254,-.1,.18340174,-.1,.25059038,-.05768249 330,.48301270,.72113249,.52885,.9160254,.3660254,-.1,.18340174,-.1,.25059038,-.05768249 270,.9160254,.47113249,.52885,.9160254,.3660254,-.1,.18340174,-.1,.25059038,-.05768249 0,.20414510,.70414519,.91599507,.52885,.30829038,-.1,.14944465,-1.27425511 300,.76188022,.70414519,.91599507,.52885,.30829038,-.1,.14944465,-1.27425511 240,1.04074773,.22113249,.91599507,.52885,.30829038,-.1,.14944465,-1.27425511 180,.76188022,-.26188022,.91599507,.52885,.30829038,-.1,.14944465,-1.27425511 120,.20414519,-.26188022,.91599507,.52885,.30829038,-.1,.14944465,-1.27425511 60,-.07472233,.22113249,.91599507,.52885,.30829308,-.1,.14944465,-1.27425511 0,.2330127,.65414519,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 300,.7330127,.65414519,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 240,.9830127,.22113249,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 180,.7330127,-.21188022,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 120,.2330127,-.21188022,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 60,-.0169873,.22113249,.91599507,.52885,.3660254,-.1,.0339746,-1.33199014 I got rid of the spaces between the numbers on the first line and that is when the error jumped to line 3. I am so confused. thanks for any help. Quote Link to comment Share on other sites More sharing options...
ReMark Posted November 30, 2015 Share Posted November 30, 2015 Where are you finding all these defective hatch patterns? Quote Link to comment Share on other sites More sharing options...
steven-g Posted November 30, 2015 Share Posted November 30, 2015 Your lines are just too long, try reducing the number of decimal places, there is an 80 character limit for the length of a line in a hatch pattern file. (and lines 9 and 10 have an extra space [.30829038*] and [.3082903*8] Quote Link to comment Share on other sites More sharing options...
dtkell Posted December 1, 2015 Share Posted December 1, 2015 ... there is an 80 character limit for the length of a line in a hatch pattern file. ... I never knew that. Maybe I'll have to look at some of the patterns I've found in the past, investigate, and resurrect from the "errors" folder. Quote Link to comment Share on other sites More sharing options...
steven-g Posted December 1, 2015 Share Posted December 1, 2015 A couple of other points to remember about hatches are mentioned in this article. https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Customization/files/GUID-A6F2E6FF-1717-44B6-A476-0CA817ADD77E-htm.html Quote Link to comment Share on other sites More sharing options...
eldon Posted December 1, 2015 Share Posted December 1, 2015 It might be that one of the errors is actually in the first line. The format of the first line should be *pattern-name [, description] So if there is no description, there should be no comma. Quote Link to comment Share on other sites More sharing options...
squareknees Posted December 1, 2015 Author Share Posted December 1, 2015 Thanks a ton, I was looking and looking for more information on hatch patterns and no matter how long I searched this article never came up in searches! this help explain a lot! Quote Link to comment Share on other sites More sharing options...
squareknees Posted December 1, 2015 Author Share Posted December 1, 2015 I didn't realize that it was so important to keep the number of characters under 80 if that would have dawned on me I could have fixed them along time ago without all this frustration! Thanks so much! you are currently my hero! Quote Link to comment Share on other sites More sharing options...
squareknees Posted December 1, 2015 Author Share Posted December 1, 2015 I just google hatch patterns or go to sites like this one where someone mentions that they have a place to get blocks and I check it out and the site also has hatch patterns that I think may be interesting. now that I know that they can't be too long I can just go in an fix them by deleting a few numbers, and spaces to make them work. Quote Link to comment Share on other sites More sharing options...
hugha Posted December 1, 2015 Share Posted December 1, 2015 One safe way to shorten the pattern lines to 80 characters or less is to duplicate each and edit to split the last four numbers between each pair while dealing with the mentioned extra space in line 9. HatchKit can automate that transformation: [font=Courier New] ;------------------------------------------------------------------------------- ; Written by HatchKit for AutoCAD ; HatchKit for AutoCAD (c)1990-2015 Cadro Pty Ltd ; [url="http://www.hatchkit.com.au/"]www.hatchkit.com.au/[/url] ;------------------------------------------------------------------------------- ;-Date : 2/12/2015 ;-Time : 10:32:38 AM ;-HatchKit Version : 3.1.7.2627 ;-HatchKit Output Filetype : AutoCAD format ;-------------------------------------------------------------------------------[/font] [font=Courier New] *arab3 59.9991788178,-0.01699,0.2211,0.915987498494,0.528863133293,0.366,-1.46600532188 59.9991788178,0.8,-0.095855,0.915987498494,0.528863133293,0.36603,-1.46597532188 29.9991789877,0.599,0.8459,0.528836879316,0.916002656235,0.366,-0.69172627202 29.9991789877,0.05,0.47113,0.528836879316,0.916002656235,0.36603,-0.69169627202 0,0.23301,0.65415,0.916025397113,-0.528850005,0.36603,-1.4660208 0,0.36699,-0.21188,0.916025397113,-0.528850005,0.36603,-1.4660208 -29.9991785186,1.082,0.433,0.528889395205,0.916002660565,0.366,-0.691726267021 -29.9991785186,0.483,0.7211,0.528889395205,0.916002660565,0.366,-0.691726267021 -59.9991786614,0.05,0.10511,0.916017816172,0.528863135793,0.36603,-1.46597531322 -59.9991786614,0.733,0.6542,0.916017816172,0.528863135793,0.366,-1.46600531322 -90,0.91603,0.47113,-0.52885001,0.9160254,0.36603,-0.69167001 -90,0.96603,-0.19169,-0.52885001,0.9160254,0.36602,-0.69168001 59.999178818,-0.074722,0.22113,0.91598749849,0.52886313329,0.30829,-1.5237153219 0,0.20415,0.70415,0.916025397113,-0.528850005,0.30829,-1.5237608 0,0.45359,-0.26188,0.916025397113,-0.528850005,0.30829,-1.5237608 -59.9991786614,0.7619,0.7042,0.916017816172,0.528863135793,0.3083,-1.52370531322 -59.9991786614,0.05,0.005107,0.916017816172,0.528863135793,0.3083,-1.52370531322 -119.718085992,1.0421,0.22269,105.341618034,0.0090402866494,0.3051,-106.86850105 29.9991789877,0.05,0.52887,0.528836879316,0.916002656235,0.25056,-0.80716627202 29.9991789877,0.699,0.8459,0.528836879316,0.916002656235,0.2506,-0.80712627202 -29.9991785186,1.132,0.3464,0.528889395205,0.916002660565,0.2506,-0.807126267021 -29.9991785186,0.533,0.75,0.528889395205,0.916002660565,0.2506,-0.807126267021 -90,0.96603,0.44226,-0.52885001,0.9160254,0.25056,-0.80714001 -90,0.91603,-0.27829,-0.52885001,0.9160254,0.25059,-0.80711001 29.9991789877,0.3536,0.7042,0.528836879316,0.916002656235,0.1834,-0.87432627202 29.9991789877,0.4536,0.7042,0.528836879316,0.916002656235,0.1834,-0.87432627202 -29.999178519,0.8866,0.48812,0.5288893952,0.91600266056,0.1834,-0.87432626702 -29.999178519,0.83663,0.5747,0.5288893952,0.91600266056,0.1834,-0.87432626702 -90,0.96603,0.09171,-0.52885001,0.9160254,0.1834,-0.87430001 -90,0.91603,0.0051071,-0.52885001,0.9160254,0.1834,-0.87430001 60.2819140078,0.7598,-0.2605,105.341618034,0.0090402866494,0.1408,-107.03280105 59.9991788178,0.1294,0.5747,0.915987498494,0.528863133293,0.1494,-1.68260532188 0,0.20415,-0.26188,0.916025397113,-0.528850005,0.14944,-1.6826108 0,0.61244,0.70415,0.916025397113,-0.528850005,0.14944,-1.6826108 -59.999178661,-0.07472,0.2211,0.91601781617,0.52886313579,0.1494,-1.6826053132 -59.9991786614,0.966,0.3506,0.916017816172,0.528863135793,0.1494,-1.68260531322 59.9991788178,0.216,0.6247,0.915987498494,0.528863133293,0.03398,-1.79802532188 59.9991788178,0.733,-0.2119,0.915987498494,0.528863133293,0.03398,-1.79802532188 0,0.69904,0.65415,0.916025397113,-0.528850005,0.033975,-1.7980758 0,0.23301,-0.21188,0.916025397113,-0.528850005,0.033975,-1.7980758 -59.999178661,-0.01699,0.2211,0.91601781617,0.52886313579,0.03398,-1.7980253132 -59.9991786614,0.966,0.2506,0.916017816172,0.528863135793,0.03398,-1.79802531322[/font] Hope this helps, Hugh Adamson Quote Link to comment Share on other sites More sharing options...
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.