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

Python loop to convert 3dm to SHP

$
0
0

Hi,
So sorry to ask what is likely a trivial issue, but I cannot find working modules.
I have Googled, Bard’d and searched Rhino Python examples :frowning:

I need to iterate through folders, loading one by one many .3dm files and export them to .shp format.
Iterating through the os.walk() is not the problem.

What rhino 7 module do I use to do the equivalent of:

rhino_object = **rs.read_3dm_file**(pathTo3dm) 
shapefile_path = os.path.splitext(pathTo3dm)[0] + ".shp"
**rs.3dmtoshape**(rhino_object, shapefile_path)

Thanks in advance,
Zoltan

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles