Hi,
I have a bug that i don’t understand.
I store my script on my Dropbox so i can use it on 2 computer.
import rhinoscriptsyntax as rs
rs.Command('-_import ' + chr(34) + 'C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium/39.3dm' + chr(34) +' _Enter')
rs.Command('-_import ' + chr(34) + 'C:\Users\PC2\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium/39.3dm' + chr(34) +' _Enter')
If i execute this scrip on my PC1, Rhino import the file twice.
Command: _-RunPythonScript
Python Script <C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Script\InsoleMedium\InsoleMedium39.py> ( ResetEngine ): "InsoleMedium39.py"
Python Script <C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Script\InsoleMedium\InsoleMedium39.py> ( ResetEngine ): -_import
Name of the file to import ( Browse ): "C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium/39.3dm"
Import scaling: Keep <ModelSize> ( DimensionNumbers ): _Enter
Import scaling: Keep <ModelSize> ( DimensionNumbers )
Successfully read file "C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium/39.3dm"
Command: -_import
Name of the file to import ( Browse ): "C:\Users\PC2\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium/39.3dm"
Import scaling: Keep <ModelSize> ( DimensionNumbers ): _Enter
Import scaling: Keep <ModelSize> ( DimensionNumbers )
Successfully read file "C:\Users\PC1\Dropbox\Rhino Core OrthoUI\Template\Insole\Medium\39.3dm"
At the 2nd import, for PC2, Rhino import from PC1…
There is a way to avoid this. I need to create 2 different script? I use the same .rui interface file, that why i prefer 1 script.
thanks
2 posts - 2 participants