Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
equivalent to arx "acedSetStatusBarProgressMeter" ?
Dim objProgress As ProgressMeter = New ProgressMeter
objProgress.SetLimit(10000000)
Dim intCount As Integer = 0
objProgress.Start()
Do Until intCount = 10000000
objProgress.MeterProgress()
intCount += 1
Loop
objProgress.Stop()
Very interesting thread. I have a question about the code below. What's the
purpose of objProgress.SetLimit(10000000) when the do loop is setting the
limit?
wrote in message news:5456938@discussion.autodesk.com...
For those using 2007 it is in the .NET API.
Here is a VB.NET Example.
Dim objProgress As ProgressMeter = New ProgressMeter
objProgress.SetLimit(10000000)
Dim intCount As Integer = 0
objProgress.Start()
Do Until intCount = 10000000
objProgress.MeterProgress()
intCount += 1
Loop
objProgress.Stop()
The loop sets the limit of of how many times the loop meters (increments) the progress control. The SetLimit property gives the maximum value for the progress control so that it can calculate that if it has been incremented 5000000 times it is at 50% progress.
A good example is if you wanted to have progress while iterating a selection set with a for next loop. You would use the SetLimit property with the count of items in the selection set and in the for next loop run the MeterProgress method.
The progress meter's range is the value given
to SetLimit().
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Ron Hanson" wrote in message news:5610069@discussion.autodesk.com...
Very interesting thread. I have a question about the code below. What's the
purpose of objProgress.SetLimit(10000000) when the do loop is setting the
limit?
wrote in message news:5456938@discussion.autodesk.com...
For those using 2007 it is in the .NET API.
Here is a VB.NET Example.
Dim objProgress As ProgressMeter = New ProgressMeter
objProgress.SetLimit(10000000)
Dim intCount As Integer = 0
objProgress.Start()
Do Until intCount = 10000000
objProgress.MeterProgress()
intCount += 1
Loop
objProgress.Stop()
Hi Nathan:
I tried it in AutoCAD 2008 and got this when I compile it:
"Type 'ProgressMeter' is not defined."
What am I missing?
I found it, but is this for AutoCAD 2007 only, not in 2008?
You're using just the class name. If you don't use the fully qualified name, you have to use "Imports". Use the Object Browser to find the namespace that contains the class.
Ed
Did you find this post helpful? Feel free to Like this post. Did your question get successfully answered? Then click on the ACCEPT SOLUTION button. How to post your code.