Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

Run Rhino command from python script

$
0
0

Hi there!

I can run command on picked object from my python script:

import rhinoscriptsyntax as rs

#rs.Command(“WaterlineElevation=9.2 Symmetric=Yes Longitude=X”)

result = rs.Command("_Hydrostatics ")

I have no idea how to catch results from this command:

Volume Displacement = …
Center of Buoyancy = …
Wetted Surface Area = …
Waterline Length = …
Maximum Waterline Beam = …
Water Plane Area = …
Center of Floatation = …

Can anyone give me a hint to return results into my python script.

I also like to run this comamnd for the same object several times with different elevation.
Without selecting the same object again.

Thanks and regards, vzav

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4159

Latest Images

Trending Articles



Latest Images