create hatch in a sketched region in a drawing

create hatch in a sketched region in a drawing

Anonymous
Not applicable
919 Views
4 Replies
Message 1 of 5

create hatch in a sketched region in a drawing

Anonymous
Not applicable

I know I can create a colored sketched region on a dawring with

 

' Create a fill region with an override color.
    Call oSketch.SketchFillRegions.Add(oProfile2, oColor)

. But is there any way to create a hatch via API in a sketched area on a drawing?

Accepted solutions (1)
920 Views
4 Replies
Replies (4)
Message 2 of 5

Josh_Hunt
Advocate
Advocate
Accepted solution

@Anonymous I don't think hatch is exposed in the API. I've been looking for this all weekend.

Josh Hunt
Message 3 of 5

Anonymous
Not applicable

Thanks, Josh. That's what I thought and found out too.

0 Likes
Message 4 of 5

YuhanZhang
Autodesk
Autodesk

Please log in the Beta forum(get the Inventor project) to try the Inventor 2021 Beta build which has the drawing sketch hatch APIs:

 

https://feedback.autodesk.com/project/home.html?cap=fb14413735ee42c99624e3793b19a0b2

 

Please let me if any feedback on the new APIs.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Message 5 of 5

Josh_Hunt
Advocate
Advocate

@YuhanZhang I opened the Inventor beta in a FRAME session and saw the new SketchHatchRegion in the API. I didn't try it much but I am simply happy to know it's there. I hope it makes it into the final build. My client is upgrading to 2020 soon but will be very happy I can automate their drawing hatch eventually.

Josh Hunt
0 Likes