Clearing All Spatial Links: Difference between revisions
(Importing text file) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
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 | |||
You may also clear all spatial links that appear on a panel in one operation using the routine operation [[Routine_Operations#DeletePanelSpatialLinks|DeletePanelSpatialLinks]]. | |||
[ 1] DeletePanelSpatialLinks(l._Model Objects[Panel_Object]) | |||
---- | |||
<font size="2">idkbase note 197</font> | |||
[[Category:Object/SpatialLink]] | [[Category:Object/SpatialLink]] | ||
[[Category:Spatial Network]] | [[Category:Spatial Network]] | ||
Latest revision as of 08:02, 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
You may also clear all spatial links that appear on a panel in one operation using the routine operation DeletePanelSpatialLinks.
[ 1] DeletePanelSpatialLinks(l._Model Objects[Panel_Object])
idkbase note 197