+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
  1. #1
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Mar 2015
    Location
    Colchester, Essex
    Posts
    5

    Default How to add a single boundary outline around multiple hatches.

    Registered forum members do not see this ad.

    Hi Guys,

    I'm currently working on a large scale map. The map I've purchased contains building areas as hatching but no boundary outline (to my shock). The map is laid out in tiles which has meant on many occasions buildings have been cut into 2 or more sections rather than the 1.

    I have downloaded a Merge Hatch.Lsp which merges all the building Hatches together but when I go to recreate boundary via 'HATCHEDIT' it just draws a line around each piece of hatching rather than the whole lot.

    Can anyone help me with this please, Many Thanks.

    Liam

  2. #2
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro K4200, 4GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2018
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    46,877

    Default

    I think I might be able to help but you will have to change the lisp routine you are currently using to merge your hatch patterns and adopt a second lisp routine that will create a single boundary.

    CAVEAT: I've only tested this technique once using nearly square hatch patterns. Here is an image of what I did.

    MergedHatches.JPG

    Upper left corner. Two boxes created with the Rectangle command which I hatched then moved the two hatch patterns to the right assigning each a different color (yellow and blue).

    Used a lisp routine by forum member hmsilva that he graciously wrote and shared on the AutoDesk Community website and posted to the Visual Lisp...forum on 04-12-2013 to merge the two patterns. Result is shown below in green.

    Finally, used a lisp routine called Hatchb.lsp written (03-30-2000) by Jimmy Bergmark that recreates a hatch boundary. If you look at the bottom rectangle on the right you'll see a single magenta boundary that surrounds the two merged hatch patterns. I suppose there is a chance that this lisp routine will solve your problem all by itself. Might want to give it a try first.

    My test was a simple one. As the saying goes "Your results may vary."

    I'm only around for another five minutes then I have to go out into the plant. May not be back for a while.
    Last edited by ReMark; 17th Mar 2015 at 07:24 pm. Reason: can't spell today & I don't know my left from my right!
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

    I'm now a full member of the Society for the Promotion of Mediocrity in CAD. Standards? We don't need no stinkin' standards! Take whatever advice I offer and do the opposite.

  3. #3
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,706

    Default

    There was a post about 2 weeks ago and it did exactly what you want taking multiple plines and working out the single boundary of all of them you can create the hatch boundaries pretty easy. I know I replied to the post but another provided the solution will look for it soon.
    Last edited by BIGAL; 18th Mar 2015 at 05:20 am.
    A man who never made mistakes never made anything

  4. #4
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,706

    Default

    The title did not really make it easy to find http://www.cadtutor.net/forum/showth...e-same-content!
    A man who never made mistakes never made anything

  5. #5
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Mar 2015
    Location
    Colchester, Essex
    Posts
    5

    Default

    Thanks Guys, I will test these out and let you know how I get on...

    ...

    Struggling to find hmsilva's lisp on the AutoCAD Community website. Do you have a link?

    When using the HATCHB.lsp along with the MergeHatch.lsp I already have I am encountering the same issues I had before.
    Last edited by Holybod; 18th Mar 2015 at 12:15 pm.

  6. #6
    Senior Member lrm's Avatar
    Computer Details
    lrm's Computer Details
    Operating System:
    Windows 7 64-bit
    RAM:
    16 GB
    Discipline
    Education
    lrm's Discipline Details
    Occupation
    Teacher, AEC and mechanical
    Discipline
    Education
    Details
    Civil and Mechanical
    Using
    3ds Max 2017
    Join Date
    Jan 2010
    Location
    Massachusetts, USA
    Posts
    380

    Default

    Here's another approach that relies only on standard AutoCAD commands. You can use this process on all hatches at the same time.
    Use HATCHGENERATEBOUNDARY to generate the boundary for all hatches then convert the boundaries to Regions then use Union to create contiguous regions from which you can use the Hatch S command to hatch the result.

  7. #7
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro K4200, 4GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2018
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    46,877

    Default

    "When using the HATCHB.lsp along with the MergeHatch.lsp I already have I am encountering the same issues I had before."

    I kind of figured you would.

    Wait here, I'll be back.

    I've attached the lisp routine below. Note that he gave it the command name "test" which you will have to change. I named the lisp routine HatchMerge.lsp to differentiate it from the MergeHatch.lsp routine which I too have.

    HatchMerge.lsp

    I added two lines to the lisp routine right at the top crediting hmsilva as the author. Please do not remove them.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

    I'm now a full member of the Society for the Promotion of Mediocrity in CAD. Standards? We don't need no stinkin' standards! Take whatever advice I offer and do the opposite.

  8. #8
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro K4200, 4GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2018
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    46,877

    Default

    Quote Originally Posted by lrm View Post
    Here's another approach that relies only on standard AutoCAD commands. You can use this process on all hatches at the same time.
    Use HATCHGENERATEBOUNDARY to generate the boundary for all hatches then convert the boundaries to Regions then use Union to create contiguous regions from which you can use the Hatch S command to hatch the result.
    A person could die of old age using that method on a very busy drawing. Just saying.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

    I'm now a full member of the Society for the Promotion of Mediocrity in CAD. Standards? We don't need no stinkin' standards! Take whatever advice I offer and do the opposite.

  9. #9
    Super Member hmsilva's Avatar
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2016
    Join Date
    Dec 2012
    Location
    Cascais, Portugal
    Posts
    531

    Default

    Quote Originally Posted by ReMark View Post
    I added two lines to the lisp routine right at the top crediting hmsilva as the author. Please do not remove them.
    Thank you! ReMark

    Henrique

  10. #10
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Mar 2015
    Location
    Colchester, Essex
    Posts
    5

    Default

    Registered forum members do not see this ad.

    Hi ReMark, Thanks again for putting your time into this.

    I've tested the HATCHMERGE.lsp which works brilliantly on basic rectangles like your example.
    However, when using this routine on more complex shapes with numerous vertex points it purely deletes/removes them rather then merging.

Similar Threads

  1. LISP to join multiple hatches.
    By rishabharora in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 26th Jul 2012, 02:34 pm
  2. Multiple BOUNDARY Command with Tolerance
    By capincanuck in forum AutoCAD General
    Replies: 1
    Last Post: 15th Feb 2011, 09:31 pm
  3. Multiple sheets. Single or multiple DWG files?
    By uhcafigdc in forum CAD Management
    Replies: 9
    Last Post: 15th Dec 2010, 02:01 pm
  4. Edit multiple hatches - impossible?
    By Haggbakk in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 13th Aug 2010, 04:21 pm
  5. Combine Multiple Hatches
    By mshearer in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 5
    Last Post: 19th Feb 2009, 05:46 pm

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