Conversion of a simple VB.Net coe to Python

Conversion of a simple VB.Net coe to Python

isocam
Collaborator Collaborator
319 Views
1 Reply
Message 1 of 2

Conversion of a simple VB.Net coe to Python

isocam
Collaborator
Collaborator

Can anybody help?

 

I have the following VB.Net code that I need converting to Python, Can anyone be kind enough to convert it for me?

 

PartString = Left$(PartDescription, 1 + InStrRev(PartDescription, "x"))

 

Many thanks in advance!!

 

Darren

0 Likes
320 Views
1 Reply
Reply (1)
Message 2 of 2

sanjana.shankar.goli
Autodesk Support
Autodesk Support

@isocam 

 

PartString = PartDescription[0:(PartDescription.rfind('x')+2)]

Hoping this works!


Sanjana Goli
Software QA Engineer
Fusion 360 Webinars | Tips and Best Practices | Troubleshooting
0 Likes