Copy sketch (including hatch) as-is into a new sketch using Inventor C# API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
As shown in the attached image, I have a sketch in Inventor that contains a hatch pattern , Centerlines, Center Mark and geometry.
My requirement:
I want to copy this entire sketch exactly as it is (geometry + hatch+ Centerlines + Center Mark) into a new sketch programmatically using the Inventor C# API.
So far, I found:
I can loop through SketchEntities and recreate lines/arcs in the new sketch, but this doesn’t bring the hatch.
Hatch regions (SketchHatchRegion) don’t seem to provide a direct method to copy or duplicate into another sketch.
There doesn’t appear to be a direct “copy-paste” equivalent in the API.
Question:
Is there any way to directly copy a sketch (with hatch intact) into a new sketch using the API?
Any examples or workarounds would be highly appreciated.
Thanks!