Access hatch angle through i logic ?

Anonymous

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
Reply
787 Views
6 Replies
Replies (6)

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

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

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

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

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

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