API Reference > imodeljs-frontend > Views > SpatialViewState > createFromProps createFromProps MethodStatic Create a new ViewState object from a set of properties. Generally this is called internally by IModelConnection.Views.load after the properties have been read from an iModel. But, it can also be used to create a ViewState in memory, from scratch or from properties stored elsewhere. createFromProps(props: ViewStateProps, iModel: IModelConnection): SpatialViewState Parameter Type Description props ViewStateProps iModel IModelConnection Returns - SpatialViewState Defined in core/frontend/src/SpatialViewState.ts Line 80 Last Updated: 11 June, 2024