Procedure
Summary:
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.
Procedure:
Use the following code to detect what the ARCEDIT.ocx refers to itself as:
aName = Arcedit1.GetProperty("windows all")
msgbox aName
or
'-- 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
list1.additem(results.item(i))
next i
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")
Article ID:000001391
Software:
- ArcMap 8 x
- Legacy Products