GithubHelp home page GithubHelp logo

rsdoc-to-sat's Introduction

rsdoc-to-sat

Convert DesignSpark Mechanical DSM rsdoc file to sat file which can be loaded into MoI3d

Installation

Install DSM (it provides SabSatConverter.exe). Install python3.

Running

rsdoc-to-sat.py <rsdoc file>

or simply drag & drop rsdoc file(s) onto rsdoc-to-sat.py file

.sat file(s) will appear in the same directory as rsdoc file(s).

arekm / maven.pl

rsdoc-to-sat's People

Contributors

arekm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rsdoc-to-sat's Issues

Failed to process file file.rsdoc: 'ZipFile' object has no attribute '__exit__'

Using Windows 7 with installed python3 (added an environment variable for "path" as "C:\Program Files\python3").

First I had no luck with finding the SabSatConverter.exe (which is btw written "sabSatConverter.exe").
Then I copied the rsdoc-to-sat.py and the .rsdoc file to C:\Program Files (x86)\DesignSpark which solves it.

But I got an error saying: Failed to process file file.rsdoc: 'ZipFile' object has no attribute 'exit'
As seen here: https://stackoverflow.com/questions/27065237/attributeerror-pool-object-has-no-attribute-exit/27065238

I changed the rsdoc-to-sat.py and added on line 12 (after import winreg):
import contextlib

Then I changed the line 60 from
with zipfile.ZipFile(archive, 'r') as mzip:
to
with contextlib.closing(zipfile.ZipFile(archive, 'r')) as mzip:

this solves the issues.

For any non python dummies, like me, here is a tutorial how to use this program (after making the 2 changes I mentioned above):

  1. Copy the "rsdoc-to-sat.py" and the .rsdoc file you want to be converted to C:\Program Files (x86)\DesignSpark.

  2. Start the comand line "cmd"

  3. Enter this to be in the correct path/folder in wich also the "rsdoc-to-sat.py" should be:
    cd C:\Program Files (x86)\DesignSpark

  4. Enter this and make sure your "filename" is correct:
    python rsdoc-to-sat.py filename.rsdoc

This uses "python" to run the file "rsdoc-to-sat.py" on the file "filename.rsdoc".

After that there will be placed one or more files (depending on how many solids and surfaces your .rsdoc file had) in the same folder where the rsdoc-to-sat.py is.

Enjoy and thanks @arekm for your work!
Consider using my modifications as futur noobs might also also suffer with it :D

Error: Was unable to find Designspark even when installed

Error: Was unable to find Designspark. Tried as administrator and as regular user, no luck.
Registry entries it appears to be looking for exist.
Replacing sabsat helped on line 49:
sabsat = "C:\Program Files\DesignSpark\DesignSpark Mechanical 2.0\SabSatConverter.exe"

Reassemble Multiple SAT files into 1 SAT file

HI there, thanks for the program to convert rsdoc to SAT. However, because I have hundreds of Solids, it created hundreds of SAT file for me. Is there a way to merge all of them into 1 SAT file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.