Using a hatch pattern in other .pat files
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Using a hatch pattern in other .pat files

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Dave F.
Guest





Posted: Thu Mar 03, 2005 11:42 pm    Post subject: Using a hatch pattern in other .pat files Reply with quote

Hi
A2k5

I'm totally confused how to use another .pat other than acad/acadiso.pat.

Where do I specify which file to use. Is it in this line somewhere?

Set HatchObj =
ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypeCustomDefined, HatPat ,
False)

Thanks in advance

Dave F.

Back to top
mtrasi



Joined: 27 Jul 2009
Posts: 1

Posted: Mon Jul 27, 2009 4:34 pm    Post subject: problems in new versions Reply with quote

Usually you specify the name of the hatch, that MUST be the same as the name of the file .pat. It works only if the .pat file is in a Support folder (see options in AutoCAD). Remember not to append .pat on the name and use something like:
AddHatch(acHatchPatternTypeCustomDefined,"MYHATCH",true)
Now in AutoCAD 2009 I can't get it work, don't know why. Before it worked
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB