Is This Content Helpful?
We're glad to know this article was helpful.
How to show the MAPEXTENT after performing a DYNAMICPAN with the ArcEdit.ocx. Issuing "SHOW WINDOWS ARCEDIT EXTENT" works in command-line ARCEDIT, but this fails using ODE.
Use the following code to detect what the ARCEDIT.ocx refers to itself as:
aName = Arcedit1.GetProperty("windows all")
'-- presumes you have a list box called list1 on a form
sev = Arcedit1.Command("Show windows all", results)
for i = 0 to results.count-1
At ARC/INFO 7.2.1, this will return the name of the ARCEDIT.ocx and it might be '' (two single quotes). Use this name in your code to return the new extent:
'-- make sure you declare and retrieve the strVar
strVar = Arcedit1.getproperty("windows '' extent")