TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Marc'Antonio Alessi on December 12, 2018, 09:06:42 AM

Title: Clean not used hatch patterns
Post by: Marc'Antonio Alessi on December 12, 2018, 09:06:42 AM
The attached file contains only 2 hatch made with Hexagons pattern:

1) A2013: if I use the command Hatch > Custom I see many unused patterns (I think from Microstation), see image

2) Bricscad (all): same command I do NOT see the unused patterns

3) A2013 + Bricscad (all): if I use the command -Hatch (not GUI) _p ? > I do NOT see the unused patterns

4) AutoCAD 2019: I get Fatal error on open (not solved!!!)

9) Question: How can I clean all the unused patterns?
Title: Re: Clean not used hatch patterns
Post by: roy_043 on December 12, 2018, 09:20:55 AM
I assume that these *.pat references in fact point to files. Which would explain the differences you see between AC and BC. Have you searched for these files on disk?
Title: Re: Clean not used hatch patterns
Post by: Marc'Antonio Alessi on December 12, 2018, 10:09:47 AM
I assume that these *.pat references in fact point to files. Which would explain the differences you see between AC and BC. Have you searched for these files on disk?
you're absolutely right, I never realized that in my 2013 Mechanical version (ONLY Mechanical) I had all these pats  :embarrassed2:
I'm trying in every way to understand why a stupid hatch can crash AutoCAD, is a problem that I have in many files…  :tickedoff:
Title: Re: Clean not used hatch patterns
Post by: roy_043 on December 12, 2018, 01:50:26 PM
I have a hunch that the fatal error is related to the boundary of the hatch entities in the dwg. The generated boundary in BC looks strange.
Title: Re: Clean not used hatch patterns
Post by: Marc'Antonio Alessi on December 13, 2018, 03:15:10 AM
Thanks for your time, I have another example more complex, no problems on BricsCAD/AutoCAD except AutoCAD 2017/2018/2019  :rolleyes2:
Title: Re: Clean not used hatch patterns
Post by: roy_043 on December 13, 2018, 05:24:47 AM
The complexity of the generated boundaries suggests that these hatches were created by an application or a different CAD program. I notice gaps and splines in the boundaries in both dwgs.
Title: Re: Clean not used hatch patterns
Post by: Marc'Antonio Alessi on December 13, 2018, 06:16:00 AM
Yes, that's what I think too, maybe it's MicroStation...  :knuppel2: