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

Exporting to STP through python rhino 7

$
0
0

I am having a an issue in exporting a closed polysurfaces as STP file through python.
the script was working in previous rhino but now in rhino 7 exports only empty STP files (0 kb)

Snip of the code:

    rs.SelectObject(nowObj)
    print nowObj
    nowName = str(nowLayer)
    nowName = nowName.replace(":", "-")
    nowName = nowName.replace(" ", "_")
    exportPath = filePath + nowName + ".stp"

    Rhino.RhinoApp.RunScript("-_Export " + str(exportPath)+ " Schema=AP214AutomotiveDesign " + " ExportParameterSpaceCurves=No" + " LetImportingApplicationSetColorForBlackObjects=Yes" +" Enter", False)
        Rhino.RhinoApp.RunScript("-_SelNone", False)
        rs.DeleteObject(nowObj)

print output for example is (are closed object polysurfaces) :
ff6af33c-bdf2-46cd-bb4e-d6ecbab7a080
33cde126-d2ba-4b76-b6a7-07984b5b81fc

so they are objects but they don’t get to be exported in the STL file, any idea why?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5873

Trending Articles