Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there any way to do a Crop operation in a drawing view using iventor API?
thanks In advance.
Mario.
Solved! Go to Solution.
Is there any way to do a Crop operation in a drawing view using iventor API?
thanks In advance.
Mario.
Solved! Go to Solution.
No official API exposed for the crop operation yet.
But you can try below workaround:
Sub CreateCropView() Dim oDoc As DrawingDocument Set oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet Set oSheet = oDoc.Sheets(1) Dim oDrawingView As DrawingView Set oDrawingView = oSheet.DrawingViews(1) Dim oSk As DrawingSketch Set oSk = oDrawingView.Sketches.Add oSk.Edit oSk.SketchCircles.AddByCenterRadius ThisApplication.TransientGeometry.CreatePoint2d(0, 0), 2 oSk.ExitEdit Me.SelectSet.Select oSk Dim oDef As ControlDefinition Set oDef = ThisApplication.CommandManager.ControlDefinitions("DrawingCropViewCmd") oDef.Execute End Sub
Hope this helps.
Fantastic!, That is what I needed.
Thank you very much.
Mario.