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

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

lmc.engineering
Advocate Advocate
182 Views
0 Replies
Message 1 of 1

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

lmc.engineering
Advocate
Advocate

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

0 Likes
183 Views
0 Replies
Replies (0)