{"id":13600149,"url":"https://github.com/SketchUp/sketchup-live-c-api","last_synced_at":"2025-04-10T21:31:22.918Z","repository":{"id":50637656,"uuid":"232827145","full_name":"SketchUp/sketchup-live-c-api","owner":"SketchUp","description":"Examples demonstrating how to use the SketchUp Live C API","archived":false,"fork":false,"pushed_at":"2023-06-16T10:35:59.000Z","size":3787,"stargazers_count":22,"open_issues_count":6,"forks_count":4,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-11-07T02:36:54.248Z","etag":null,"topics":["c","cmake","cpp","example","extension","ruby","sketchup","vscode"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SketchUp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-09T14:25:02.000Z","updated_at":"2024-09-15T11:25:07.000Z","dependencies_parsed_at":"2024-01-14T04:41:50.782Z","dependency_job_id":"284a651e-8969-4b09-8589-8f88110dc09c","html_url":"https://github.com/SketchUp/sketchup-live-c-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchUp%2Fsketchup-live-c-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchUp%2Fsketchup-live-c-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchUp%2Fsketchup-live-c-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchUp%2Fsketchup-live-c-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SketchUp","download_url":"https://codeload.github.com/SketchUp/sketchup-live-c-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301387,"owners_count":21080887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cmake","cpp","example","extension","ruby","sketchup","vscode"],"created_at":"2024-08-01T18:00:29.534Z","updated_at":"2025-04-10T21:31:18.859Z","avatar_url":"https://github.com/SketchUp.png","language":"CMake","funding_links":[],"categories":["CMake"],"sub_categories":[],"readme":"# SketchUp Live C API Examples\n\n_These examples are for usage within the SketchUp desktop application. They will not work for usage in other applications._\n\nThe [SketchUp C API](https://extensions.sketchup.com/sketchup-sdk) is mainly used for the following:\n\n* Read/Write `.skp` files in applications other than SketchUp.\n* Create Importers/Exporters for SketchUp.\n\nA third usage, officially supported since SketchUp 2019.2 it allows _read only_ access to the open SketchUp model via [Ruby C extensions](https://github.com/SketchUp/ruby-c-extension-examples).\n\nThis is a guide demonstrating how to setup and build your own Ruby C extension that uses the SketchUp C API to read from the active model.\n\n## General Instructions\n\n`\u003cSDK_PATH\u003e` is the location where the SDK package is extracted.\n\n### Windows\n\n* Add `\u003cSDK_PATH\u003e\\headers` to the include paths.\n* Link against `\u003cSDK_PATH\u003e\\binaries\\sketchup\\x64\\sketchup.lib` (Do **not** link against `SketchUpAPI.lib`!)\n\n### macOS\n\n* Add `\u003cSDK_PATH\u003e` to framework search paths.\n* Set `/Applications/SketchUp 2023/SketchUp.app/Contents/MacOS/SketchUp` as the bundle loader. (Do **not** link against `SketchUpAPI.framework`!)\n\n## CMake Example Project\n\nThe code in this repository will demonstrate a [CMake](https://cmake.org/) project for a Windows \u0026 Mac builds. This CMake project can be used to create a [Visual Studio solution](https://visualstudio.microsoft.com/), [Xcode project](https://developer.apple.com/xcode/).\n\n* [How to build the CMake example project](docs/cmake.md)\n* [How to build the CMake example project via VSCode](docs/cmake-vscode.md)\n\n## Editor Instructions\n\n\nFor those who prefer not to use CMake there is documentation for setting up the following IDEs/editors directly:\n\n* [Visual Studio](docs/visual-studio.md)\n* [XCode](docs/xcode.md)\n\nVisual Studio and Xcode is the main IDEs we work with. We welcome pull-requests if you want to contribute documentation for setting up your favorite editor.\n\n## See Also\n\n* [Using the Live C API](docs/using-live-c-api.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSketchUp%2Fsketchup-live-c-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSketchUp%2Fsketchup-live-c-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSketchUp%2Fsketchup-live-c-api/lists"}