-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add complete build123d + visualization demo via ocp_vscode "standalone" mode #793
Comments
+1 |
Nice |
Yes nice! I suggest to consider a few more things:
Would it make sense to start a discussion what else could get "users up and running quickly"?
|
I am not the only one who struggled at this point, see here. Suggestion: The recommended method for most users to install build123d is:
buiild123d is a Python library without any user interface. In most cases you want to visualize your models however. A commonly used tool for this ocp-vscode. It can display models in VSCode or standalone in a web browser. To add this tool to your environment call:
For an integration with VSCode you also need the extension "OCP CAD Viewer" from the marketplace. Box with Note: As an alternative you can install only the VSCode extension. It has the ability to install all required libraries. You can find more similar tools here and in the first Note from Introductory Examples under 1. add: I need to think more about the argparse thing and come up with a more concrete example. I don't think it has to be built-in. But everybody sooner or later needs to perform more than one function on his script. Giving some guidance how you can accomplish this with code could be helpful for someone coming from a "GUI-CAD" background. Maybe there are better ways than command line arguments (Jupiter notebooks?, a button to export in the viewer?) Anyway this belongs to another issue/discussion. |
The thing is before the standalone version of ocp_vscode, the recommended way was to install the extension in the VSCode market place and install the ocp_vscode python package from the extension. Since ocp_vscode is also a project that is evolving |
Understood, but keep the documentation consistent. This means that the provided sample code should work after following the installation instructions. Currently the doc states the recommended way is to use pip (which is good). It should mention how to make the |
This is an open-source project that welcomes pull-requests so if you have improvements to make to the docs then go ahead. Like most open-source projects there are only a few people keeping the lights on so we can't do everything at once. |
I would say that ocp-vscode is just one way to create and visualize designs, and it would be easy to be turned off by build123d if that was perceived as the only way to do it. Personally I prefer a simpler approach: command line emacs to write the code and Mayo (https://dev.opencascade.org/project/mayo) to display the resulting exported step file. Mayo has auto-reloading so it all works quite smoothly. Cheers. |
Now that ocp_vscode supports use in a regular browser (and not strictly bound with VSCode), it is much easier to explain how one could simply:
pip install build123d ocp_vscode
python -m ocp_vscode
http://127.0.0.1:3939/viewer
in a suitable browsershow
statementAs a way to get users "up and running quickly" I propose something similar to the above is added to the build123d docs (with appropriate links/caveats back to the
ocp_vscode
repo/docs). Further I propose that a screenshot is added to show what this could look like (maybe with vim + chrome, or something similar).The text was updated successfully, but these errors were encountered: