Thanks both of you! I use the formula field using functions like random(), right() etc all the time but how do I create a formula to count node IDs connected to street links? I tried Stewart's formula but it has two lines of code. Does anyone know how to create a formula field using Stewart's code: ArrayLength(GetNodeLinks(ID)) ? This will save me from invoking GISDK scripting....
Regards, Rudy B. On Wed, Oct 17, 2012 at 12:44 PM, dr_haspel <[email protected]> wrote: > ** > > > Rudy, > > The one thing Stewart didn't mention is a nice undocumented hack: you can > use Edit-->Fill->Formula to fill a column with the results of any function > that returns a numeric or string datatype. Just make sure that your field > settings match the datatype to be returned. > > I haven't done this recently (not since version 4.x), but I'll wager it's > still possible! > > > --- In [email protected], [email protected] wrote: > > > > Hi: > > This example code line should help: > > ArrayLength(GetNodeLinks(ID)) > > Maptitude Mapping Software <http://www.caliper.com> Group Moderator > > > > > > > --- In [email protected], "banerjee15" <aniruddha.banerjee@> > > wrote: > > > > > > How can I get the number of links attached to each node? I have used > > used Edit-->Fill-->Aggregate to count links by using a band distance > > (but this creates mistakes since some nodes are less than 10 feet of > > each other.... and when choosing a larger band it counts links not > > attached to node...); same problem using overlay (Maptitude asks for a > > band size). I'd be nice to have a function that counts the number of > > links attached to each node.... > > > > > > Rudy B. > > > Maptitude 6.0 user > > > > > > > > -- Aniruddha Banerjee, Ph.D.
