Entity name problem(s)

Entity name problem(s)

Anonymous
Not applicable
461 Views
0 Replies
Message 1 of 1

Entity name problem(s)

Anonymous
Not applicable

Hi,

 

I do use a lot of macros to import solids in my drawings, but sometimes when I do import the same solid twice, and want to rename it the same way as the first one is named, it will tels me that the name has already been used by another solid or whatever PSEntity...

 

Ok right, so if the name I want is "insoluble" I can do/try the following :

 

If psmodel.solids.getbyname("insoluble") isnot nothing then

        psmodel.solids.getbyname("insoluble").name() = "new_name"

end if

 

But if the solid has been used in a boolean operation already, and is stuck inside a solid history tree, it will say : "Object not found", but I will still be unable to rename it "insoluble" because it will be used already. If we could change the name of all entities in solid history trees without getting an "Object not found" I think it could really help honnestly... The script above should already be working, I don't see why it's not if I'm trying to change the name manually with the API, i think it should still be accessible somehow.

 

Thanks for your help

 

dave

0 Likes
462 Views
0 Replies
Replies (0)