Grasshopper

algorithmic modeling for Rhino

Hello , 

I'm  gonna using optimization with geco plug in , but the result which coming out from lua component is a Text not numeric value ? 

How I can

change it to be a number , So I can connect the optimization ?

I tried to clean a tree to remove any additional text then 
tried to split text but i still getting text 
deconstruct tree and the result in a numeric but not referring to the target number ? 

Views: 18592

Attachments:

Replies to This Discussion

I cannot repeat your problem, if I plug that text into a number parameter it correctly converts.

Please internalise the 'Text' input of the Split component and post that part of the file so I can test with the actual data.

Thanks David for your reply

ok , these is my working file 

Attachments:


it dosen't work in the same file 


but when I interialse data then copy the components in the new file it work ! 




how that happened ! 


what can I do ?


If we can't recreate your problem.... try explode the text into characters and then just after rejoin them into a text string. Then try again conversion to number.

I'd also like to see what the attached C# component makes of the string. It will show a list of char unicode codepoints, so all the control characters and whitespace will be visible:

Attachments:

Incidentally if the text contains NewLine characters at the end, you can use the Text Trim component to get rid of them. That may clean up your text data enough to be make it convertable to numbers.

I'm very grateful for keeping helping me ...

I'm never use text tab components in grasshopper before ..

but I found the solution when I trying to understand what you want to advice me :) 

it works with me in that way 

many thanks :) 

I have the same problem :/ 

but didn't work the text components . any way it could work ? or maybe I'm missing something..

thanks a head

got it :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service