ChrisClems / EdgeSharp

A library of helpers and extensions for the Solid Edge API. A spiritual successor to SolidEdge.Community build on modern .NET to make Solid Edge interop less frustrating.
MIT License
1 stars 0 forks source link

Auto generate flat pattern from draft #17

Open ChrisClems opened 2 months ago

ChrisClems commented 2 months ago
drawingViews.AddSheetMetalView(modelLink,
                        ViewOrientationConstants.igTopView, scale, 0.2159, 0.15,
                        SheetMetalDrawingViewTypeConstants.seSheetMetalFlatView);

Somehow provide desired min/max coordinate range of area within sheet coordinate system where drawing should reside.

Scale DrawingView by adjusting scale based on comparison of coordinate range and DrawingView.Range()

Center DrawingView in center of coordinate range by moving DrawingView.SetOrigin to drawingViewOriginX += sheetXMid - drawingViewXMid;

Extension methods on views? Different Add*View methods exist Helper method? Lots of logistics to consider.