VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enlarge a hatch or region by vba

4 REPLIES 4
Reply
Message 1 of 5
ah_4032
346 Views, 4 Replies

Enlarge a hatch or region by vba

I want to enlarge the hatch in top of tunnel (in attached picture and AutoCAD file) to reach its new area to twice of old area.

I want to do it by vba code.

4 REPLIES 4
Message 2 of 5
-didier-
in reply to: ah_4032

Bonjour @ah_4032 

 

We don't have enough explanations at the moment to give you an effective answer.
Should the hatch be enlarged or reduced?
Should the red part of the magenta hatch be removed?
Give us your code in its current state, and I'll see what I can do about it.
As I don't know the data involved, I don't know how to answer.

 

Amicalement

 

 

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

Message 3 of 5
ed57gmc
in reply to: ah_4032

At least provide information of how you expect the program to work. We can't read your mind. Also, do not make multiple threads. You can edit your post  by clicking on the 3 vertical dots in the upper right of the post.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 4 of 5
ah_4032
in reply to: -didier-

i fund the solution by adding a delata-y to all of the points of outer polylines in a loop to reach a criteria. But at now, my problem is that I need to detect the magenta color hatchs by any coordinate of them. I need to Area of them in my criteria. All of sections of tunnel have magenta color hatch. When I select the all of sections, I should can to detect the magenta hatch of every section to enter its area and outer polylines points in array similar this: Dim sectionInformationAr (100,1) as variant For I to 100 sectionInformationAr(I,0)=hatch.area sectionInformationAr(I,1)=polylineObj.points Next I is the code of every section.

Message 5 of 5
ed57gmc
in reply to: ah_4032

If you have code, post it using the link in my signature.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report