I have a Python for loop and got the "Message: Parameter must be a Guid or string representing a Guid"
I am looping a list but not sure what is the right format of the Guid.
in-between single quotes
’<System.Guid object at 0x0000000000000039 [09c04700-f879-4e06-8432-f1a381f781f7]>' without single quotes
<System.Guid object at 0x0000000000000039 [09c04700-f879-4e06-8432-f1a381f781f7]> or simple ID
[09c04700-f879-4e06-8432-f1a381f781f7]
The question is what format do I have to use to listToExtend that is accepted as Guids.
listToExtend = [ list content]
listBaseExtend = [ list content lots of curves by selection get.Objects]
for i in listToExtend:
print "i:"
print i
rs.ExtendCurve (i, 0, 0, listBaseExtend)
Ok, it works. When new items have been added to the list python add an extra space " " and when I extracted the string, Python did not recognized the full text, so I had to remove the space.