Python Cyclone string PyGeomType

Discuss and upload any tools here for other members to use.
Post Reply
KirbX
I have made 20-30 posts
I have made 20-30 posts
Posts: 28
Joined: Mon Aug 03, 2015 12:24 pm
8
Full Name: S R
Company Details: Unknown
Company Position Title: Helper
Country: France
Linkedin Profile: No

Python Cyclone string PyGeomType

Post by KirbX »

Hello everybody, it's me again.
I have a little problem, I'm trying to compare a something that have the PyGeomType and a string by

Code: Select all

if item_name=="PyCylinder":
but it always go to the else section.
But when I do

Code: Select all

 _cy_io.Print(item_name); 
I have "PyCylinder" output that is the same word that i'm trying to compare.
Do someone know what happen?

Is it because item_name have the PyGeomType, and "PyCylinder" the string type?
KirbX
I have made 20-30 posts
I have made 20-30 posts
Posts: 28
Joined: Mon Aug 03, 2015 12:24 pm
8
Full Name: S R
Company Details: Unknown
Company Position Title: Helper
Country: France
Linkedin Profile: No

Re: Python Cyclone string PyGeomType

Post by KirbX »

Ok, I was searching too far,
you can convert item_name by using str(item_name)...
Post Reply

Return to “AutoLisp, DIESEL, Dynamo, VBA, Python & .Net Tools”