S3D.UI


The S3D.UI namespace is where you can control the viewport that shows the model.


S3D.UI.update#

Description: Updates the UI to reflect any changes made.

Operation Type: Synchronous

Params: S3D.UI.update(Object)

Object properties:

KeyTypeDescription
redrawbooleanWhether to redraw the model on finish.
update_undobooleanAllow operation to be undone.
update_transformationsbooleanUpdate transformations.
ignore_save_notificationbooleanDismiss save notification.
refresh_open_datasheetbooleanRefreshes the open datasheet.
keep_highlightbooleanKeep highlighted elements highlighted.
force_update_area_loadsbooleanUpdate area loads.
refresh_left_menubooleanWhether to refresh the left menu too.

Sample:

showChanges.js
S3D.UI.update({
redraw: true,
update_undo: false,
update_transformations: false,
ignore_save_notification: false,
refresh_open_datasheet: true,
keep_highlight: false,
force_update_area_loads: true,
refresh_left_menu: true,
});