There are not enough quotas to process the command

There are not enough quotas to process the command

anton.gorschnev
Enthusiast Enthusiast
375 Views
4 Replies
Message 1 of 5

There are not enough quotas to process the command

anton.gorschnev
Enthusiast
Enthusiast

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

0 Likes
376 Views
4 Replies
Replies (4)
Message 2 of 5

Michael.Navara
Advisor
Advisor

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)

 

0 Likes
Message 3 of 5

anton.gorschnev
Enthusiast
Enthusiast

antongorschnev_0-1680780809813.png

 

0 Likes
Message 4 of 5

anton.gorschnev
Enthusiast
Enthusiast

antongorschnev_0-1680781027193.png

 

0 Likes
Message 5 of 5

anton.gorschnev
Enthusiast
Enthusiast

antongorschnev_1-1680781957782.png

 

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.

0 Likes