jsketcher icon indicating copy to clipboard operation
jsketcher copied to clipboard

Import step or brep file

Open ancorasir opened this issue 5 years ago • 8 comments

Is it possible to import step file from local computer?

I used the "Import step file" icon but fail to import any step file. Could please give an example? Thanks! @xibyte

ancorasir avatar Jul 23 '20 04:07 ancorasir

I will have a video up soon about how to do this. Stay tuned. Also right now the step file needs to be on a server.

mmiscool avatar Jul 24 '20 15:07 mmiscool

Currently you can only specify an URL to a file. So your step file should be served from some HTTP server. If you are running the jsketcher as a dev server you can just drop your step file inside web directory and then specify http url to that file in the wizard. Hope it helps.

xibyte avatar Jul 24 '20 20:07 xibyte

I’m able to open some step files I uploaded on GitHub. However, I found that jsketcher fail to read some other step files for example

https://raw.githubusercontent.com/ancorasir/node-occ/master/7.STEP

I can read the above file with another occ repo so I’m wondering if the problem is with webassembly building of occ. Any suggestions? Thanks. @xibyte

ancorasir avatar Jul 26 '20 23:07 ancorasir

Import of step file from local file system now possible. Imported step files will now show as a feature in the part history. Boolean and edge operations are able to be used with the imported object.

mmiscool avatar Jun 13 '21 07:06 mmiscool

Import of step file from local file system now possible.

@mmiscool Could you please elaborate how this is possible on the demo page (http://web-cad.org/)? File -> Import Project -> [my step file] doesn't seem to work.

0xCoto avatar Apr 08 '22 16:04 0xCoto

@0xCoto As it stands today the JSketcher build deployed in the demo is quite outdated. We are working on the next major release currently but there is no ETA on the next deployment to the demo site.

mmiscool avatar Apr 16 '22 06:04 mmiscool

This is a link to a recent build of the dev branch. It includes step, brp and FCStd file import functionality.

For now be careful not to import any thing with extremely large numbers of edges as that might result in a laggy viewport. There is a performance enhancement in the works to address this as we are migrating the very old version of threejs to the latest and greatest.

mmiscool avatar Aug 06 '22 05:08 mmiscool

@0xCoto Woops. Forgot to paste the link in the previous comment. https://autodrop.cloud/jsketcher/

mmiscool avatar Aug 06 '22 16:08 mmiscool