.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

equivalent to arx "acedSetStatusBarProgressMeter" ?

26 REPLIES 26
Reply
Message 1 of 27
newArch
1158 Views, 26 Replies

equivalent to arx "acedSetStatusBarProgressMeter" ?

hello

what is the equivalent to arx "acedSetStatusBarProgressMeter" ?
In other word how can i access to AutoCad StatusBarProgressMeter?

Thanks in advanced.
26 REPLIES 26
Message 21 of 27
NathTay
in reply to: newArch

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()
Message 22 of 27
Anonymous
in reply to: newArch

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()
Message 23 of 27
NathTay
in reply to: newArch

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.

Regards - Nathan
Message 24 of 27
Anonymous
in reply to: newArch

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()
Message 25 of 27
wesbird
in reply to: newArch

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?



Thank you

Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
Message 26 of 27
Ed.Jobe
in reply to: newArch

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

EESignature

Message 27 of 27
NathTay
in reply to: newArch

Sorry.

Autodesk.AutoCAD.Runtime.ProgressMeter

Regards - Nathan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost