(API) Nodes.FreeNumber() after Nodes.DeleteMany() or Nodes.Delete()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a question regarding numbering of nodes after deleting some of them using API.
For example, RobApp.Project.Structure.Nodes.FreeNumber() will give us number 5. We will create this node with number 5 and then we will delete it using RobApp.Project.Structure.Node.DeleteMany() or RobApp.Project.Structure.Nodes.Delete(). We will run RobApp.Project.Structure.Nodes.FreeNumber() again and we will receive free number 6 instead of 5
After Delete command from Robot GUI, the FreeNumber() method works as expected.
A short video to demonstrate the issue:
https://www.screencast.com/t/A1tbRQuWaj
I think that I missed something, like initialization of model after deleting of nodes, but I did not find appropriate method.
I hope that @Rafal.Gaweda will help me with this small but annoying issue š
Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.
Roman Zhelezniak
Robot Evangelist & Passionate Civil Structural Engineer