Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
lmc.engineering
156 Views, 0 Replies

Pass a Planar sketch from model in drawing view to AddSectionView method vb.net

Hi All,

 

Using the API, I'm trying to create a section view of an assembly, using a planar sketch within a component occurrence as the section sketch. My issue is getting hold of the correct sketch object to pass to the AddSectionView method.

 

I've Noted that:

AddSectionView method takes a DrawingSketch object.

The model sketches don't exist as DrawingSketches in the drawing view.

 

How would I begin to get the correct object here?

 

I figured as Inventor offers this workflow when creating a section view manually, so long as the model sketch is visible in the drawing view, that it would be possible to do via API. Is it actually possible?

 

Appreciate any pointers

 

Regards