Clearing All Spatial Links: Difference between revisions
Jump to navigation
Jump to search
m (1 revision(s)) |
mNo edit summary |
||
Line 1: | Line 1: | ||
To clear lots of spatial links, the best way is to do it using a small routine the iterates through your locations and deletes all spatial links from that location. | |||
To delete all spatial links from a location use the routine command remove spatial link from ... to ... | To delete all spatial links from a location use the routine command remove spatial link from ... to ... where you set from = your location and set to = 0. (setting to = 0 will remove all spatial links from the originating location) | ||
The following routine will iterate through all model objects and attempt to delete all spatial links in your system (yep its a quick and dirty way to clear hundreds of spatial links if you dont have a list of your locations) | The following routine will iterate through all model objects and attempt to delete all spatial links in your system (yep its a quick and dirty way to clear hundreds of spatial links if you dont have a list of your locations) | ||
[ 1] h = Label Count of List:_Model Objects | [ 1] h = Label Count of List:_Model Objects | ||
[ 2] i = 0 | |||
[ 3] i = Next Label Index of (i) | |||
[ 4] WHILE (k<h) | |||
Condition Details: | |||
k < j | |||
[ 5] Breakpoint if 1 true | |||
[ 6] Remove Link From i to 0 | |||
[ 7] i = Next Label Index of (i) | |||
[ 8] Increment k by 1 | |||
[ 9] END WHILE | |||
---- | |||
<font size="2">idkbase note 197</font> | |||
[[Category:Object/SpatialLink]] | [[Category:Object/SpatialLink]] | ||
[[Category:Spatial Network]] | [[Category:Spatial Network]] | ||
Revision as of 04:27, 12 January 2008
To clear lots of spatial links, the best way is to do it using a small routine the iterates through your locations and deletes all spatial links from that location.
To delete all spatial links from a location use the routine command remove spatial link from ... to ... where you set from = your location and set to = 0. (setting to = 0 will remove all spatial links from the originating location)
The following routine will iterate through all model objects and attempt to delete all spatial links in your system (yep its a quick and dirty way to clear hundreds of spatial links if you dont have a list of your locations)
[ 1] h = Label Count of List:_Model Objects [ 2] i = 0 [ 3] i = Next Label Index of (i) [ 4] WHILE (k<h)
Condition Details: k < j [ 5] Breakpoint if 1 true [ 6] Remove Link From i to 0 [ 7] i = Next Label Index of (i) [ 8] Increment k by 1 [ 9] END WHILE
idkbase note 197