Community
when exiting sketch editing (sketch.ExitEdit()), after drawing a large number of points (if oHolPoint.HoleCenter = True more than 9000, if oHolPoint.HoleCenter = False more than 6000) the System error pops up.ComponentModel.Win32Exception
HResult=0x80004005
Message = Not enough quotas to process the command
I can't confirm it. I try following code without any issues (Inv 2023)
Dim sketch As PlanarSketch = ThisApplication.ActiveEditObject
Dim start = DateTime.Now
sketch.DeferUpdates = True
For x As Integer = 0 To 100
For y As Integer = 0 To 100
sketch.SketchPoints.Add(ThisApplication.TransientGeometry.CreatePoint2d(x, y))
Next
Next
sketch.DeferUpdates = False
sketch.Solve()
sketch.ExitEdit()
Dim duration = DateTime.Now - start
Logger.Debug(duration.TotalSeconds)
it helps to draw points without entering edit mode, but performance decreases significantly. maybe the problem is in the old version of the Inventor 2014.
Can't find what you're looking for? Ask the community or share your knowledge.