# \#capi

**URL:** https://forums.sketchup.com/tag/capi/1991.md

[Latest](https://forums.sketchup.com/latest.md) · [Categories](https://forums.sketchup.com/categories.md) · [Tags](https://forums.sketchup.com/tags.md)

---

## [Sometime I can't save file after clear useless definition](https://forums.sketchup.com/t/sometime-i-cant-save-file-after-clear-useless-definition/336699)

<div class="topic-metadata">

**Author:** [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 1:19am UTC](https://forums.sketchup.com/t/sometime-i-cant-save-file-after-clear-useless-definition/336699 "2025-08-05T01:19:07Z")

</div>

OS version : window 10 x64 SDK version : SDK\_WIN\_x64\_2025-0-634 I got SU\_ERROR\_SERIALIZATION when save after clear. purge\_definitions\_fail.skp Can’t save file after clear useless definitions · Issue #1059 · SketchU…

---

## [Does CAPI support multi-threading?](https://forums.sketchup.com/t/does-capi-support-multi-threading/219698)

<div class="topic-metadata">

**Author:** [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Replies:** 11\
**Last updated:** [February 27, 2023, 2:48pm UTC](https://forums.sketchup.com/t/does-capi-support-multi-threading/219698 "2023-02-27T14:48:21Z")

</div>

When outputting Layout, I want to generate model viewports in multiple threads. SDK\_version: SDK\_WIN\_x64\_2022-0-354 Source Code: source\_code.zip (2.1 KB) Test file:test3.skp I got exception from SketchupViewerAPI.dl…

---

## [Finding a bug in SUFaceGetUVTileAt](https://forums.sketchup.com/t/finding-a-bug-in-sufacegetuvtileat/196325)

<div class="topic-metadata">

**Author:** [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Replies:** 3\
**Last updated:** [April 21, 2022, 12:23am UTC](https://forums.sketchup.com/t/finding-a-bug-in-sufacegetuvtileat/196325 "2022-04-21T00:23:54Z")

</div>

I got different UVTile with ruby and C. There is only one face in the model. ruby code Sketchup.active\_model.active\_entities.grep(Sketchup::Face).each do |face| puts "===========reference #{ORIGIN}=============" re…

---

## [How can I erase a locked group with C-API?](https://forums.sketchup.com/t/how-can-i-erase-a-locked-group-with-c-api/186408)

<div class="topic-metadata">

**Author:** [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 10:16am UTC](https://forums.sketchup.com/t/how-can-i-erase-a-locked-group-with-c-api/186408 "2022-01-13T10:16:01Z")

</div>

unlock the group, then erase the group, but prompt me that serialization failed when I save the model. When I annotate the whole method, it can be saved normally. void DeleteLockEntities(SUEntitiesRef entities) { size…

---

## [I want get the progress saving the model](https://forums.sketchup.com/t/i-want-get-the-progress-saving-the-model/183739)

<div class="topic-metadata">

**Author:** [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Replies:** 2\
**Last updated:** [December 11, 2021, 12:58am UTC](https://forums.sketchup.com/t/i-want-get-the-progress-saving-the-model/183739 "2021-12-11T00:58:20Z")

</div>

long total\_size,curr\_size; // Estimated file size generated by saving SUModelGetFileSize(model,&total\_size); //Gets the size of the saved content SUModelGetCurrentSaveSize(model,&curr\_size);
