Grasshopper

algorithmic modeling for Rhino

Hello People ,

 i have a simple problem, How do u define " " space in commandline with rhioscript , 

cant get it through

example :

 Dim strFolder
strFolder = "C:\Documents and Settings\3dmax.obj"
Rhino.Command("_-Import " & strFolder)

thanks

Views: 308

Replies to This Discussion

Encase the string with spaces in double quotes:

Rhino.Command("-_Import " & """" & strFolder & """")

If you put two double quotes in a string, it will become a single double quote without terminating the string.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks m m and congrats for award

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service