4 Commits

Author SHA1 Message Date
NLSA a5d0c73349 Update main.yml
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2026-03-23 13:12:42 +01:00
NLSA 905a3e45ad Merge branch 'main' of https://github.com/specklesystems/IFC-Exporter-Rhino 2026-03-23 13:11:12 +01:00
NLSA 479a0a3077 update main.py 2026-03-23 13:11:02 +01:00
NLSA a458ab9f75 Clean up README by removing setup instructions
Removed prerequisites, setup, running locally, and testing sections from the README.
2026-03-23 13:02:58 +01:00
3 changed files with 7 additions and 35 deletions
+1
View File
@@ -30,3 +30,4 @@ jobs:
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }}
speckle_function_input_schema_file_path: ${{ env.FUNCTION_SCHEMA_FILE_NAME }}
speckle_function_command: "python -u main.py run"
speckle_function_recommended_memory_mi: 8000
-29
View File
@@ -72,35 +72,6 @@ utils/
## Getting Started
### Prerequisites
- Python 3.11+
- A Speckle account and project
### Setup
```bash
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate
pip install --upgrade pip
pip install .[dev]
```
### Running Locally
Register and run via [Speckle Automate](https://automate.speckle.dev/), or test locally with Docker:
```bash
docker build -f ./Dockerfile -t ifc-exporter-rhino .
docker run --rm ifc-exporter-rhino python -u main.py run '<automation_context_json>' '<function_inputs_json>' <speckle_token>
```
### Testing
```bash
pytest
```
## Using with Speckle Automate
1. Go to the Automations tab in your project
+6 -6
View File
@@ -217,12 +217,12 @@ def automate_function(
ifc.write(ifc_filename)
print(f"\nIFC file written: {ifc_filename}")
# try:
# automate_context.mark_run_success("Success! You can download the IF file below.")
# automate_context.store_file_result(f"./{ifc_filename}")
# except Exception as e:
# print(f" ⚠️ Could not upload file result (network issue?): {e}")
# automate_context.mark_run_failed(f"Something went wrong when storing file result. Exception detail: {e}")
try:
automate_context.mark_run_success("Success! You can download the IF file below.")
automate_context.store_file_result(f"./{ifc_filename}")
except Exception as e:
print(f" ⚠️ Could not upload file result (network issue?): {e}")
automate_context.mark_run_failed(f"Something went wrong when storing file result. Exception detail: {e}")
print(f"\n{'=' * 60}")
print(f" Export complete!")