I would like to request an improvement in the Inventor API related to creating section views from model sketches. In the Inventor UI, the workflow is possible and very useful: Create a sketch in a part or assembly document. Include that model sketch into a drawing view. Select the included sketch in the drawing view. Create a section view from that selected sketch. This works manually, and the workflow is valuable because the section line is based on the model sketch. If the model sketch changes, the drawing view can continue to reflect the intended design logic. However, the same workflow does not seem to be fully reproducible through the API. Currently, from the API side, I can find the PlanarSketch in the part or assembly document and include it in the drawing view by using DrawingView.SetIncludeStatus. After that, I can also retrieve the related drawing curves through DrawingView.DrawingCurves(modelSketch). The problem is that DrawingViews.AddSectionView requires a DrawingSketch, not a model PlanarSketch or the drawing curves returned from the included sketch. The included model sketch cannot be cast to a DrawingSketch. A possible workaround is to: Include the model sketch in the drawing view. Read the resulting DrawingCurveSegment geometry, start points, and end points. Create a new DrawingSketch inside the drawing view. Manually recreate the section line geometry in that sketch. Pass the new DrawingSketch to AddSectionView. However, this workaround breaks associativity. The manually recreated DrawingSketch is no longer linked to the original model sketch. Therefore, if the model sketch dimensions, position, or geometry are changed later, the section line used by the drawing section view will not update accordingly. In that case, the API can technically create a section view, but it cannot reproduce the same associative workflow that is available in the Inventor UI. This would be very useful for automated drawing generation workflows, especially when section lines are already defined parametrically in the model. In our case, section line sketches are created in part or assembly documents as part of the design logic. When drawings are generated automatically, we need to use those same sketches to create section views while keeping the link to the model sketch. Without this API support, we have to manually recreate the geometry in the drawing sketch, which removes the connection to the original model sketch and makes the drawing less robust when the model changes. In short, Inventor already supports this workflow in the UI. It would be very helpful if the API could support the same associative workflow as well.
Show More