api-issue-tracker
api-issue-tracker copied to clipboard
Layout Ruby API is missing the Update Model Reference feature
Use Case
A SketchUp Extension wants to modify a SketchUp file which is referenced by a Layout file. The Layout Document needs to be told to update it's SketchUpModel Entities. After that a PDF Export of the updated Layout file is performed.
Missing Feature
To update the SketchUpModel references in the Layout Document currently there is no option to perform a "Update Model References" like there is in the UI.
Example function names
Layout::SketchUpModel.update_model_references
and
Layout::SketchUpModel.relink_model_references
Current Workaround
A Workaround to this is to remove the SketchUpModel Entity and to insert it again.
However that workaround is buggy as described in this bug report