I’m trying to export my model successfully uploaded to SD. It exports nicely in .3dm format but nothing else even if I choose other formats. Pls see below.
These are the format I have setup in my GH definition using the SD plugin. I have a currently running PRO account and I expected to export the model in the listed formats. Someone could suggest what I might missing? Thx
Make sure you convert surfaces and breps to meshes for OBJ or STL exports otherwise only 3DM format will produce any geometry to download. Let me know if this helped and please share a minimal version of your definition if you still struggle.
@pavol thank you, actually I’m after only wireframe drawings to export, so no breps. I thought that 3d .dxf or .ifc can be produced with the export component of SD. …anyhow, would I be better off writing a script to do this task or do you know a plugin which is “SD-friendly” and creates exports? …basically my basic need would be to create csv or json format for point coordinates and lines between them.
Please ignore my previous question, I just need to explore the SD plugin functions better. I guess the JSONConstruct component will be my friend to create nicely formatted objects to consume them alter.
The SDDataOutput component is useful for sending data via API from your ShapeDiver model to other applications. For downloading geometry use the SDExportDownload component and make sure you convert geometry to appropriate type depending on the export format. Learn more about DXF export in this video tutorial. IFC exports are supported by GeometryGym plugin and require more work in Grasshopper to prepare the objects for output. This blog article showcases a great application of this workflow.
I’ve tried the SDDataOutput but it seems the platform doesn’t pick them up after re-uploading. The other type of export is available in the UI and also through the API but the the SDDataOutput do not. See below my components in GH:
Here is a minimal version of my approach, pls see attached. Basically few lines with one slider input and I wish to export their data in a JSON format. It properly renders in my front-end and also in SD platform, but all api functions regarding output data returns empty arrays.
Parameters return properly as for my original model.
correct, it works fine in ShapeDiver’s console but not from another client, like my front-end React app. Please note that the api.parameters.get().data; returns data properly but not the api.scene.getData();
…I tried something else now. I have embed the same model in my code with an iFrame and it works exactly as in ShapeDiver. But still doesn’t with the direct embedding.
A React code review is outside of the scope of this Forum, I’m afraid. Make sure you request the data after the initial scene is loaded and you might also find some answers in the collection of code examples and this React component sample:
I am also having trouble exporting to a file format other than the 3dm. (1st image)
I cant seem to find a way to plug a dxf component into “Options”
its reverting to a 3dm file which makes me have to open the rhino file and manually export dxf file after that.
You seem to be working with an old version of the plugin. Please update it to the latest version, ideally using the PackageManager command and searching for the ShapeDiver package. You might need to manually remove the previous version of the plugin from your Components library if you had installed it manually by copying files there.
In the latest version, you will find all Export Options components in the “Outputs” category of the plugin.
Since several versions of the plugin, the text input containing the file extension has been replace with a ShapeDiver Export Options input. You should use one of the Export Options component of the plugin to pick the file format and the corresponding export options: