Layout API (ruby or C) update skp file reference

I was wondering if there is any way to update all (or just one) skp file reference(s) in a layout file from the api?
@adam maybe you could help?

I don’t see it in either API.


I logged a related issue: https://github.com/SketchUp/api-issue-tracker/issues/324
for getting the viewport model’s path via the Ruby API.

Getting it via the C API is a a double function call (see the comments in the issue 324.)

1 Like

We currently have not exposed a file reference class through our LayOut APIs. This is where the information you want is located. We have logged this internally and will prioritize it with our other work.

Thanks,
Adam

3 Likes

That is unfortunate.
Hopefully this will be added to future api releases.