Clearing All Spatial Links: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (1 revision(s))
mNo edit summary
Line 1: Line 1:
<font face="Arial">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 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 ...<br /> where you set from = your location and set to = 0. (setting to = 0 will remove all spatial links from the originating 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)
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<br /> [ 2] i = 0<br /> [ 3] i = Next Label Index of (i)<br /> [ 4] WHILE (k&lt;h)
[ 1] h = Label Count of List:_Model Objects
[ 2] i = 0
[ 3] i = Next Label Index of (i)
[ 4] WHILE (k&lt;h)


  Condition Details:
  k &lt; 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


Condition Details:
----




k &lt; j




[ 5] Breakpoint if 1 true<br /> [ 6] Remove Link From i to 0<br /> [ 7] i = Next Label Index of (i)<br /> [ 8] Increment k by 1<br /> [ 9] END WHILE
<font size="2">idkbase note 197</font>
 


</font>
----
[[Category:Object/SpatialLink]]
[[Category:Object/SpatialLink]]
[[Category:Spatial Network]]
[[Category:Spatial Network]]
[[Category:Spatial Networks]]
[[Category:Methodology]]
<font size="2">idkbase note 197</font>

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