(API) Nodes.FreeNumber() after Nodes.DeleteMany() or Nodes.Delete()

(API) Nodes.FreeNumber() after Nodes.DeleteMany() or Nodes.Delete()

Romanich
Mentor Mentor
1,437 Views
3 Replies
Message 1 of 4

(API) Nodes.FreeNumber() after Nodes.DeleteMany() or Nodes.Delete()

Romanich
Mentor
Mentor

 

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

LinkedIn | Robot & Єобот | App Store for Robot
EESignature


1,438 Views
3 Replies
Replies (3)
Message 2 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @Romanich

 

I am afraid it is like that by API.



Rafal Gaweda
Message 3 of 4

Romanich
Mentor
Mentor

Thank you, Rafal. May I hope that this issue will be fixed in the next SP or in the new Robot release?

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

LinkedIn | Robot & Єобот | App Store for Robot
EESignature


0 Likes
Message 4 of 4

JacquesGaudin
Advocate
Advocate

Is there any intention to fix this bug? It's almost 2 years since the original post.

0 Likes