Access hatch angle through i logic ?

Access hatch angle through i logic ?

Anonymous
Not applicable
1,037 Views
7 Replies
Message 1 of 8

Access hatch angle through i logic ?

Anonymous
Not applicable

I am using an main assembly that has aprox. 4K parts, most of them steel.

Most sub-assemblys also have a lot of parts in them.

 

When i make sections on the drawings, i get loads of hatches where it sets the hatch angles in all kind of directions.

As its a pain in the behind to select each of them 1 by one and setting them back to 0, i was wondering if i can somehow make a rule for this in ilogic.

Basicly i just want it to find all the hatches and set the angle of the pattern to 0.

 

Is this possible through ilogic ?

if not, is there some other way to prevent the hatches getting al kinds of angles ?

 

thanks in adavance.

0 Likes
1,038 Views
7 Replies
Replies (7)
Message 2 of 8

Balaji_Ram
Alumni
Alumni

Hi,

 

This can be done by modifying the current style's preset value for "Section Hatch Angle".

You can have all the listed values removed except the one that you want to use. 

 

http://beinginventive.typepad.com/being-inventive/2011/07/fix-hatch-angle-in-section-view.html

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 8

Anonymous
Not applicable

As some sections need to be rotated after placement, i still end up with all kind of angles.

 

Is there no way to do this with iLogic, or maybe even with a API plugin ?

0 Likes
Message 4 of 8

Balaji_Ram
Alumni
Alumni

Sorry, this is not part of the API yet.

 

http://forums.autodesk.com/t5/inventor-ideastation/hatch-object-api/idi-p/5418183

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 8

brianM328K
Enthusiast
Enthusiast

Hi All

 

I'm Guessing that after 8 Years we still don't a fix for this.

As I would like some way to mass change or pick a selection then adjust the angle of the hatch.

 

Regards Brian

0 Likes
Message 6 of 8

WCrihfield
Mentor
Mentor

Hi @brianM328K.  Actually, there may be hope for that request.  In the 2022 version of Inventor, they started introducing some API for accessing the hatch areas of drawing views.  However, there are multiple layers involved in this 'onion'.

DrawingView.HatchRegions 

DrawingViewHatchRegions 

DrawingViewHatchRegion 

DrawingViewHatchRegion_Angle 

 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 7 of 8

brianM328K
Enthusiast
Enthusiast

Hello All and @Anonymous 

 

If anyone is still interested in drawing sketch hatch manipulation, you may like the attached code. Its something I have been working on.

(Note: this code will edit all hatches in that view. If any one knows how to select a small group of hatches only Please let me know)

 

brianM328K_0-1707837178535.png

 

 

Message 8 of 8

r_pruellage
Contributor
Contributor

Hello, thanks for your work. The code looks good. Based on your code:

I want to change the angle in 90°, the size of 0,05 and an offset of 11mm in a Drawing when "hatch pattern A" is used.

The code has to change all hatches in every view on a sheet. Is this possible?

0 Likes