Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5743

GUID ID Clone

$
0
0

@ricardo.eira wrote:

Hello,

Is possible Clone a obj guid?

I need Ex:

Create a new obj, and get the guid id of another to this new one.

I know there can not be two pieces with the same id in the same drawing, so
I need to delete the old obj, I need do something like this:

obj= rs.GetObject(“Select delete obj” ,8)
if obj:
obj2= rs.GetObject(“Select clone obj” ,8)
if obj2:
ID= obj[0]
rs.DeleteObject(obj)
set new guid id to obj2

Any chance?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5743

Trending Articles