How to get the object id's from method generated objects

Hello Scripters,

I’am working on an automatic splitting script. But i’am stuck an can’t find an answer in the help or the internet.

I generated 4 Lines by the AddLine() Method, but how can i save the object id’s of these lines to a list to use them later on?

line_list = [] line_list.append(rs.AddLine((0,0,0), (1,1,1)))

In case AddLine() returns None, the line has not been added to the document and most likely your input to the AddLine() function is not correct (or you discovered a bug).

Thanks Silvano - so simple :wink: