Quantcast
Channel: Forums - ArcView 3.x
Viewing all 20 articles
Browse latest View live

ArcView 3.3 - Values for Grids

$
0
0
Hi I'm using arcView 3.3 and I have a Grid data source that I have calculated to show travel time in seconds. I have performed the
calc and produced a theme map, how can I view the values to make sure the calc was performed correctly. its easy as a vector
theme because I can view the theme table, grids do not have a theme table.

Any suggestion?

How to truncate a string with the Field Calculator?

$
0
0
I would like to truncate the values from a field of type string. It's the last eight characters that I would like to truncate. How can I do that?

E.g. an adress with the name "Storgatan 11 LGH 1201" and I would like to truncate the last eight characters so that the remaining string only is "Storgatan 11"

What language do I convert my Avenue scripts to in ArcGIS 10.1 Desktop?

$
0
0
I am moving to ArcGIS 10.1 Desktop Basic from Arcview 3.2a. What language do I use to rewrite all my Avenue scripts? I use custom toolbars and a lot of user selection of objects from views. Below is a typical script that will flip the direction of a line for correct routing of a road centerline:

theView = av.GetActiveDoc
theDisplay = theView.GetDisplay
theTheme = theView.GetActiveThemes.Get(0)
theRectangle = theView.ReturnUserRect

'Select a line
If (theRectangle.IsNull) then
thePoint = theView.GetDisplay.ReturnUserPoint
theTheme.SelectByPoint(thePoint,#VTAB_SELTYPE_NEW)
else
theTheme.SelectByRect(theRectangle,#VTAB_SELTYPE_NEW)
end

theFTab = theTheme.GetFTab
field1 = theFTab.FindField("Shape")

for each rec in theFTab.GetSelection
aline = theFTab.ReturnValue(field1,rec)

'SET THE FLIPPED LINE TO A VARIABLE
newline = aline.flip

'SET THE SHAPE FIELD'S VALUE TO NEWLINE
theFTab.SetValue(field1, rec, newline)
end

theFTab.GetSelection.ClearAll

'INVALIDATE THE VIEW
theView.invalidate
theDisplay.Flush

Thanks in advance for your help!

Can't edit table

$
0
0
What's the deal when you "start editing" a table; enter something into one of the cells; but then when you finish, it just turns into a "0"? (I know this is something stupid).

THANKS!

Zoom to Selected problem

$
0
0
Does anybody know why "Zoom to Selected" sometimes doesn't work? I see that currently, it's in one particular theme that it's not working for me; it works in the others!

No--I just figured out that it works for some of the features in that theme; but not for others---

arcview 3.2 - add leading 0

$
0
0
hi
I need help adding a leading 0 to a column that has 12 digits including the leading 0. example 012345678912

thanks

T

How do I Create Multipart Polygons from Single Part Polygons

$
0
0
Hi

I am used to using ArcMap 10.1 where I can use the merge function in the edit tool bar to create a multipart polygon from selected single part polys within the same layer.

I can not seem to find similar functionality in ArcView 3.2. Is there a way to do this? Is there a script that I need/ can get?

Thank you for your time.

How to open Arcview 3.x project file with spaces in path or filename: solved

$
0
0
During a good walk with my dog I figured out this simple solution. When double-clicking in the File Explorer on an .apr with spaces in either file name or path, the whole path + name is passed on to Arcview as a list, with the spaces as list tokens. The list can be rebuilt into a complete file string using the Self-argument in one of the scripts that is part of Default.apr: Appl.initialize. As a spin-off, it is quite easy to have Arcview open .odb's or .dbf's in this way as well, by checking in Appl.Initialize what file type the user wants to open, and acting accordingly.

Hubert

ArcGIS 3.x

$
0
0
Hello. Does anyone know where I can obtain a copy of ArcGIS 3.x for Mac? Does ESRI still sell or support it? Thanks in advance for your help.
-Lloyd

Error in SB.MainDLG.Open at 1893

$
0
0
Every time I click the ShopBot File Generator it always give me this error and inside the box it states: A(n) Nil object does not recognize request GetVtab. What does this mean?

dynamic text labels

$
0
0
hi all,

this is something I've been searching widely and wildly around the web but could not find a proper solution (for arcview 3.x)

my problem:

I would like to link dinamically some labels in a layout to some fields in a table or even better to the content of a text files;
this feature is needed because I have a sort of "master project" (apr) that I want to "recycle" each time with different data (text labels), the rest remaining unaltered;

my question:
is that possible? is there any way to accomplish for this? can someone point me in the right direction

thank you for any help

max

How to Resize Controls in Dialog Designer with Avenue

$
0
0
Yes, we still have an old ArcView 3x application (amazing it works on Windows 7 64bit) . . .

I have a dialog created with the Dialog Designer with a listbox. I need to programmatically change the width of the listbox with Avenue.

When I resize the width of the listbox as follows . . .

theDlgExt = av.FindDialog("MyDlg").ReturnInnerExtent
if (bNarrower= true) then
theListBox.Resize(theDlgExt.getX - 50, theDlgExt.getY)
else
theListBox.Resize(theDlgExt.getX, theDlgExt.getY)
end

The problem is, I have control fasteners set as follows:
"If the dialog width changes, the control will maintain its:"
- distance from the left side of the dialog
- distance from the right side of dialog

You would think that the listbox width would toggle, but it does not. It resizes, but not as expected: Toggle narrower: gets a little narrower; toggle back to previous width: doesn't toggle as narrow as it was before being toggled wider. So, running this script repeatedly causes the listbox to grow incrementally wider.

I want to toggle the width of a listbox when I show/hide a column of buttons next to the listbox.

Is there a way to set control fasteners from Avenue? Or is the issue something else?

grid and polygon intersection

$
0
0
given:
- a polygon theme having an attribute table field with building height (HEIGHT)
- many grids (floating point) referring to different heights (z1, z2 , z3,….) and simulating a pollutant concentration (CONCENTRATION)
I want to find:
- for each grid at a given height (z1, z2 , z3,….) and for a specific map value exceeding a fixed threshold value of pollutant concentration (a selection of the grid)
- the buildings with HEIGTH higher than the grid height (z1, z2 , z3,….) intersecting the selection of the grid (grid cells above the threshold value)

I’ m asking here which is the best way to proceed considering that the number of buildings and grids is quite big;
I’m looking for a method to automatise and speed up the whole process
my configuration is arcview 3.3 with spatial analyst 2.0

any hints for this?

m

Data Join help

$
0
0
Hey there Arc GIS peeps. So I am pretty new to all this and am currently studying GIS at university in Australia. I am working on an assignment and need to work out "the cost of removing land from production" to help with watershed catchment. I have created a 40 meter buffer around the area that needs to be removed and got the area in Hectares, the problem I am running into is that different areas on the map have different land capabilities and therefore are worth different amounts. I tried joining the table that contains the land capabilities and the table of the buffered areas that need to be removed from production but I can work out how to tell what all the buffer areas add up to for the cost of removal from production. Can anyone help? I hope what I've said makes sense because I have begun to confuse myself.


Regards

Tristan

All good, I managed to work it out. I performed the clip in the wrong order so my information was missing. All under control now :D

avenue, live link and refresh a viewframe in a layout

$
0
0
please help me, I'm desperately seeking a solution to create a button in a layout in order to toggle live link and the refresh the viewframe; the following code apparently does correctly the toggling of the live link but there is no way to make it refreshing the view;
any hint much appreciated!


'''' start of code

theLayout = av.GetActiveDoc

lstGraphics = theLayout.GetGraphics

vFrame = lstGraphics.FindByClass(ViewFrame)

if(vFrame = Nil) then
MsgBox.Warning("no viewframe in the layout, exiting!","")
exit
end


theView = vFrame.GetView
msgbox.info(theview.asstring,"")

llink= vFrame.isLiveLinked
msgbox.info(llink.asstring,"")


if (llink = true) then

vFrame.SetView(theView, false)
vFrame.SetDisplay(theLayout.GetDisplay)
vFrame.Invalidate
aV.ProcessAllInvals

else

vFrame.SetView(theView, true)
vFrame.SetDisplay(theLayout.GetDisplay)
vFrame.Invalidate
aV.ProcessAllInvals

end
''''''' end of code

How to fix map projection?

$
0
0
Hi everyone! I have some shape files of two adjacent areas but they do not match. Also points taken from gps also do not match (100-300m displacement). I think the projection is not alright. What should I do? By the way, I use Arcview 3.3.

avenue script to autolabel a single record

$
0
0
starting from this script which is autolabelling ALL records from a given field in a theme

'-------------------------------
theView=av.GetActiveDoc
theTheme = theView.GetActiveThemes.Get(0)
theFTab = theTheme.GetFTab
theFld = theFTab.FindField("Gronda")

for each rec in theFTab

thePt = theFTab.GetLabelPoint(rec)
theStr = theFTab.ReturnValueString(theFld,rec)
GrText = GraphicText.Make(theStr,thePt)
theTxtPos = PointTextPositioner.Make

'text centered

theTxtPos.SetHAlign(#TEXTPOSITIONER_HALIGN_CENTER)
theTxtPos.SetVAlign(#TEXTPOSITIONER_VALIGN_ABOVE)
theTxtPos.Calculate(thePt,GrText.GetExtent,theTheme.ReturnSymbolSize(rec),nil)

GrText.SetOrigin(theTxtPos.GetOrigin)
GrText.SetAngle(theTxtPos.GetAngle)

theView.GetGraphics.Add(GrText)
theTheme.GetGraphics.Add(GrText)

'the text to scale as you zoom

theView.GetDisplay.HookupSymbol(GrText.ReturnSymbols.Get(0))

end
'-------------------------------

now I'm in the need to modify it in order to autolabel JUST the record corresponding to the max value of the selected field

Any help for this?

auto grid generation

$
0
0
AOA. im new user of arcview... i got an assignment of drawing grids for whole country on different scales... please tell me any extension.. that help me in generating grids...

Not able to see Theme

$
0
0
Hi,
I am working on old version of ArcGis, Arcview 3.2a with Oracle DBMS 8. I am able to see data for some features in DBMS and even I could see all the attribute data by "Open Theme table" icon option for the selected layer. But not able to see the graphical data.
some time between i could see error like "Underlying DBMS error" .
When i do further analysis, I could see Geometry column was having NULL data in it, which I could guess problem for not displaying the graphic data.
I am using arcSDE 8 for Oracle gateway.
So could anybody suggest how to see this graphic data here? thanks in advance...

Thanks

auto grid generation

$
0
0
AOA..can you give a link of fishnet tool for ArcGIS 9.3.1,, i've seen this extension in data management toolbox but there,s not. i also want ask about hawth tool.. is this different from fishnet tool.. ??? Thanks...
Viewing all 20 articles
Browse latest View live