+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    Full Member
    Computer Details
    tlawson's Computer Details
    Operating System:
    Windows Vista Home Premium
    Computer:
    Acer Aspire M7711
    CPU:
    Intel(R) Core(TM)2 Quad CPU Q8300 @2.50GHz
    RAM:
    4.00 GB
    Graphics:
    ATI Radeon HD 4650 (1024MB)
    Primary Storage:
    750G
    Monitor:
    HP w2228h
    Using
    AutoCAD 2010
    Join Date
    Feb 2008
    Location
    Kent, England
    Posts
    25

    Default Circle Hatch Pattern Problem

    Registered forum members do not see this ad.

    I am in the process of trying to develop a circle hatchpattern.

    The numbers below work as expected by drawing 5 lines.

    The problem that I am stuck and confused by is the last entry (-1365)

    This works but the true value should be (-1365.2)

    If I enter this value then the hatch doesn’t work. Why??

    Hatch Pattern Code below


    *Circle





    0,475.4957149,251.2038183,0,1000,49.00857016,-950.9914298





    0,475.4957149,748.7961817,0,1000,49.00857016,-950.9914298





    90,251.2038183,475.4957149,0,1000,49.00857016,-950.9914298





    90,748.7961817,475.4957149,0,1000,49.00857016,-950.9914298





    45,305.8961586,659.4495491,707.1067812,707.1067812 ,49.00857016,-1365


    Many thanks

    Tony
    Last edited by tlawson; 22nd Oct 2012 at 07:18 pm.

  2. #2
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,968

    Default

    Are you missing a return at the end of the line?

  3. #3
    Full Member
    Computer Details
    tlawson's Computer Details
    Operating System:
    Windows Vista Home Premium
    Computer:
    Acer Aspire M7711
    CPU:
    Intel(R) Core(TM)2 Quad CPU Q8300 @2.50GHz
    RAM:
    4.00 GB
    Graphics:
    ATI Radeon HD 4650 (1024MB)
    Primary Storage:
    750G
    Monitor:
    HP w2228h
    Using
    AutoCAD 2010
    Join Date
    Feb 2008
    Location
    Kent, England
    Posts
    25

    Default Good Point

    I have already thought about this and NO I stiil have a return at the end. So this still put's me at a loss to what the problem is.

    Tony

  4. #4
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,968

    Default

    Your problem is indeed curious, because I get a hatch pattern with both -1365 and -1365.2

    Are you getting any messages on the command line?

  5. #5
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,968

    Default

    However, you may not need to be at a loss any longer. Here is a hatch file that I found, and using a hatch scale of 1000, it does what you are trying to do

    Code:
    *circle32,Circle with 1/2 unit diameter
    0, .48,.25, 1,.5, .04,-.96
    90, .25,.48, 1,.5, .04,-.96
    45, .31,.66, .7071067812,.7071067812, .042426407,-1.371787155
    45, .66,.31, .7071067812,.7071067812, .042426407,-1.371787155
    135, .34,.31, .7071067812,.7071067812, .042426407,-1.371787155
    135, .69,.66, .7071067812,.7071067812, .042426407,-1.371787155
    36.86989765, .34,.69, 1.4,.2, .05,-4.95
    36.86989765, .62,.28, 1.4,.2, .05,-4.95
    53.13010235, .69,.34, -1.4,.2, .05,-4.95
    53.13010235, .28,.62, -1.4,.2, .05,-4.95
    126.86989765, .31,.34, 1.4,.2, .05,-4.95
    126.86989765, .72,.62, 1.4,.2, .05,-4.95
    143.13010235, .66,.69, 1.4,-.2, .05,-4.95
    143.13010235, .38,.28, 1.4,-.2, .05,-4.95
    11.30993247, .52,.25, .9805806755,-.1961161351, .050990195,-5.048029318
    11.30993247, .43,.74, .9805806755,-.1961161351, .050990195,-5.048029318
    78.69006753, .25,.52, .9805806755,.1961161351, .050990195,-5.048029318
    78.69006753, .74,.43, .9805806755,.1961161351, .050990195,-5.048029318
    101.30993247, .75,.52, -.9805806755,.1961161351, .050990195,-5.048029318
    101.30993247, .26,.43, -.9805806755,.1961161351, .050990195,-5.048029318
    168.69006753, .48,.25, .9805806755,.1961161351, .050990195,-5.048029318
    168.69006753, .57,.74, .9805806755,.1961161351, .050990195,-5.048029318
    21.80140948, .38,.72, 2.22834405757,.1856953382, .0538516481,-5.3313131581
    21.80140948, .57,.26, 2.22834405757,.1856953382, .0538516481,-5.3313131581
    68.19859052, .26,.57, -2.22834405757,.1856953382, .0538516481,-5.3313131581
    68.19859052, .72,.38, -2.22834405757,.1856953382, .0538516481,-5.3313131581
    111.80140948, .28,.38, 2.22834405757,.1856953382, .0538516481,-5.3313131581
    111.80140948, .74,.57, 2.22834405757,.1856953382, .0538516481,-5.3313131581
    158.19859052, .43,.26, 2.22834405757,-.1856953382, .0538516481,-5.3313131581
    158.19859052, .62,.72, 2.22834405757,-.1856953382, .0538516481,-5.3313131581
    
    

  6. #6
    Full Member
    Computer Details
    tlawson's Computer Details
    Operating System:
    Windows Vista Home Premium
    Computer:
    Acer Aspire M7711
    CPU:
    Intel(R) Core(TM)2 Quad CPU Q8300 @2.50GHz
    RAM:
    4.00 GB
    Graphics:
    ATI Radeon HD 4650 (1024MB)
    Primary Storage:
    750G
    Monitor:
    HP w2228h
    Using
    AutoCAD 2010
    Join Date
    Feb 2008
    Location
    Kent, England
    Posts
    25

    Default

    Hi Eldon

    The code you supplied is exactly the same code I have.

    If you look at line 4 the last value is -1.371787155

    As you said the scale is 1:1000

    What I am doing is trying to create a pattern at a scale of 1:1, hence my value is close to the one in the code (1365)

    The error on the command line is
    Missing parameter on line 6


    Perhaps I could send you the .pat file and you can see if it works on your machine?

    I know you may say use the code that works but I have already created an Excel UserForm that has various brick and mesh hatches. This allows you to alter the size using a scale of 1:1.

    The Excel program then creates the .pat file for you. I wish to do this with the circle hatch thus allowing me to alter dimensions such as the circle spacing and circle size.

    Tony
    Last edited by tlawson; 22nd Oct 2012 at 07:19 pm.

  7. #7
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,119

    Default

    tlawson,

    Please read the CODE POSTING GUIDELINES and edit your first post to include CODE TAGS.

    Thread has been moved to The CUI, Hatches, Linetypes, Scripts & Macros forum.

    And welcome to CADTutor!
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  8. #8
    Full Member
    Computer Details
    tlawson's Computer Details
    Operating System:
    Windows Vista Home Premium
    Computer:
    Acer Aspire M7711
    CPU:
    Intel(R) Core(TM)2 Quad CPU Q8300 @2.50GHz
    RAM:
    4.00 GB
    Graphics:
    ATI Radeon HD 4650 (1024MB)
    Primary Storage:
    750G
    Monitor:
    HP w2228h
    Using
    AutoCAD 2010
    Join Date
    Feb 2008
    Location
    Kent, England
    Posts
    25

    Default

    Apologies for my oversight.

    Tony

  9. #9
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,968

    Default

    Quote Originally Posted by tlawson View Post
    The error on the command line is “Missing parameter on line 6”
    That was the message that I got before I put a return on line 6. When you are in a text editor, check to see whether the cursor will drop down to the line beneath the last data. If it won't then another return is needed.

    I can understand that you want to produce a variable form for hatches, but circles are a bit different.

    Basically with hatches, you have a family of lines which go off at an angle and now and again touch down to produce a line segment, and then lifts up until it is time for the next segment. Your aim, I believe, was to create a 32 segment circle, which has a regular 11¼° between segments. Some of those lines would have to go a long way before they found another segment to draw. That is why the posted file does not have regular angular intervals, but it works. So put those dimensions into your spreadsheet where you will be able to scale which bits you require. Usually with hatches, you should not be able to see the tiny irregularities.
    I think that you would be able to scale the circle sizes, but would be surprised if you could alter the spacing unless you also altered some of the angles.

  10. #10
    Full Member
    Computer Details
    tlawson's Computer Details
    Operating System:
    Windows Vista Home Premium
    Computer:
    Acer Aspire M7711
    CPU:
    Intel(R) Core(TM)2 Quad CPU Q8300 @2.50GHz
    RAM:
    4.00 GB
    Graphics:
    ATI Radeon HD 4650 (1024MB)
    Primary Storage:
    750G
    Monitor:
    HP w2228h
    Using
    AutoCAD 2010
    Join Date
    Feb 2008
    Location
    Kent, England
    Posts
    25

    Default

    Registered forum members do not see this ad.

    I did have a return line in the text file so that one is still a mystery.

    As I have only just started working on the circle hatch program, I now realize from your last comment that it will not be possible to do due to the angular intervals.

    I thank you for your help. It's looking like this is going to be an impossible one for me to include in my program

    Regards

    Tony

Similar Threads

  1. How to hatch a circle pattern in a circle?
    By Gail77333 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 9
    Last Post: 6th Feb 2011, 01:22 am
  2. Hatch pattern error, making a "Hatch Code" .pat
    By SDSinc in forum AutoCAD General
    Replies: 4
    Last Post: 18th Jan 2011, 03:25 pm
  3. Can anyone find the problem in this hatch pattern?
    By bobsy852 in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 20th Aug 2010, 04:34 pm
  4. hatch problem: deformed pattern
    By Snacks in forum AutoCAD Drawing Management & Output
    Replies: 6
    Last Post: 30th Apr 2007, 09:10 pm
  5. Concrete Hatch Pattern Problem
    By wherestheanykey in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 14th Feb 2007, 06:51 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts