ThingView Widget: Properties
This section describes the properties available for the ThingView widget.
Property Name
Description
Base Type
Default Value
Bindable Target (T) / Bindable Source (S)
ProductToView
Visualizes the Creo View data in ThingWorx. Use this property to specify the URL to the Creo View structure file. You can load either a PVZ file or URL to the structure.
If your model contains a single figure, it is automatically loaded.
If your model contains multiple figures, no figure is automatically loaded. In this case, select the figure you want to load using the Views property or the ThingViewControls user interface.
If the model contains no figures, all the default visible parts from the structure are loaded.
As the ThingView widget runs in the client browser session, any requests for content that is not to the same-origin is subjected to cross-origin request rules. As a best practice, content should either be located and served by the ThingWorx server or be routed through a content proxy if you load it from Windchill.
STRING
NA
T
Orientations
Sets the view orientation.
Values for the standard view orientations are:
ISO1
ISO2
Top
Bottom
Left
Right
Front
Back
STRING
ISO1
T
MouseNavigation
Sets the mouse navigation mode.
Values for mouse navigation modes are:
CreoView
Creo
CATIA_V5_Compatible
Explore
STRING
CreoView
T
Orientation
Angle of rotation of camera in degrees. Specify the orientation in the X,Y,Z format. This property is used in conjunction with the GetViewLocation or SetViewLocation services.
For example, to rotate 90 degrees around the Y-axis, specify 0,90,0.
STRING
NA
T
S
Position
Position of the camera in meters. Specify the position in X,Y,Z format. This property is used in conjunction with the GetViewLocation or SetViewLocation services.
For example, to locate the camera at 0.5 meters along X-axis, specify 0.5,0,0.
STRING
NA
T
S
BackgroundStyle
Changes the background color of the view. It uses the Background color field from the style definition.
STYLEDEFINITION
NA
NA
Data
Used to handle cross selection, color, and transparency formatting for parts loaded in the session.
For cross selection, use a Data Table that contains a column of occurrence IDs of the parts in the model. The occurrence ID paths are unique identifiers of a part in Creo View data.
For changing the color and transparency of parts, use another column along with a DataFormatter. See the DataFormatter property for more information. Bind this Data Table to the Data property and Data property of the Grid widget to perform a cross selection between them.
* 
The cross selection is not supported for figures.
INFOTABLE
NA
T
S
OccurrenceField
Contains the occurrence ID. The column is selected from the Data Table which is bound to the Data property.
FIELDNAME
treeId
NA
DataFormatter
Uses state-based formatting to apply color and transparency to Creo View parts. Specify a column from the Data Table which is bound to the Data property.
STATEFORMATTING
NA
NA
SelectedOccurrencePath
Occurrence path of the part that is selected in the 3D data.
If multiple parts are selected, the property specifies the occurrence path of the last selected part.
STRING
NA
S
PreSelectedOccurrencePath
Occurrence path of the part that is preselected in the 3D data. Hover over a part to preselect it.
STRING
NA
S
Views
Data Table that contains the list of views available for the product structure that is loaded.
Select a row is in the Data Table to load the view.
Examples of view are annotation set, view state, or an illustration figure.
To load a view, select the row in the Data Table. The Data Table uses the Views Data Shape.
INFOTABLE
NA
T
S
Gnomon
Shows or hides the gnomon. A gnomon is a 3D symbol for an absolute XYZ coordinate system. It provides a reference to understand the orientation of objects in the view.
BOOLEAN
False
T
S
EnablePartSelection
Enables or disables part selection.
BOOLEAN
True
T
S
EnablePartDragger
Shows or hides the part dragger when parts are selected. This property is also available in the ThingViewControls user interface.
BOOLEAN
False
T
S
SpinCenter
Shows or hides the spin center while rotating the view.
BOOLEAN
False
T
S
AllowCORSCredentials
Enables cross-origin requests (CORS).
BOOLEAN
False
NA
AllowClientRedirect
This property is applicable if the media proxy is used to load models from Windchill.
When set to true, clients handle the redirect response from Windchill to load parts.
When set to false, the media proxy handles the redirect response from Windchill.
BOOLEAN
True
NA
AcknowledgeStepText
Acknowledgement message for a sequence step.
STRING
NA
S
SequenceStepNumber
Step number of the current sequence.
STRING
NA
S
SequenceStepName
Name of the current sequence step.
STRING
NA
S
WindchillSourceData
Set to true if the source data is from Windchill, else set it to false.
BOOLEAN
True
NA
EnableWindchillFileCache
Enables saving of Windchill part files to cache for faster loading.
BOOLEAN
False
NA
WindchillCacheSize
Maximum cache size in megabytes for storing part geometry from Windchill files.
NUMBER
1000
NA
SelectedParts
Data Table that contains the occurrence IDs of the selected parts.
The Data Table uses the Selection Data Shape.
INFOTABLE
NA
T
S
ThingViewControls
Enables the side panels user interface to interact with the model.
BOOLEAN
True
NA
DisplaySequenceAnimationControls
Shows and hides the display of the animation and sequence playback controls. When you load any figure containing an animation or a sequence, this property either displays or hides the playback controls for it.
BOOLEAN
True
NA
DisplayViewState
Shows and hides the view states in the side panels user interface. This property is applied only if ThingViewControls property is set.
BOOLEAN
True
NA
DisplayAlternateRep
Shows and hides the alternate representations in the side panels user interface. This property is applied only if ThingViewControls property is set.
BOOLEAN
False
NA
DisplayExplodeState
Shows and hides explode state in the side panels user interface. This property is applied only if ThingViewControls property is set.
BOOLEAN
False
NA
DisplaySectionCut
Shows and hides the section cuts in the side panels user interface. This property is applied only if ThingViewControls property is set.
BOOLEAN
False
NA
DisplayFilter
JSON string to configure the display of model annotations in the model.
For example, specify the JSON string as:
{
"ModelAnnotation":
{
"HiddenByDefault": true,
"PlanarAnnotation": true,
"FloatingAnnotation": false,
"MiscAnnotation": false
}
}
Display of screen space annotations is not supported by the ThingView widget.
STRING
{
"ModelAnnotation":
{
"HiddenByDefault": true,
"PlanarAnnotation": true,
"FloatingAnnotation": false,
"MiscAnnotation": false
}
}
NA
ProjectionMode
Specifies the projection mode for the current view. Values for projection modes are:
Orthogonal—Views the objects without any perspective effects.
Perspective—Renders a realistic view of models.
STRING
Orthogonal
NA
PerspectiveHFOV
Specifies the field of view for Perspective mode. You can set the value between 0 degrees to 180 degrees.
NUMBER
60
NA
SelectionPropertyGroupName
Specifies the group name of the selection property.
This property is applicable only when the SelectedParts property selection mode (SelectedPartsSelectionMode) is either PROPPATH or PROPVALUE.
STRING
NA
T
SelectionPropertyName
Specifies the name of the selection property.
This property is applicable only when the SelectedParts property selection mode (SelectedPartsSelectionMode) is either PROPPATH or PROPVALUE.
STRING
NA
T
SelectedPartsSelectionMode
Specifies the selection mode for the SelectedParts property:
IDPATH— The occurrence IDs of the parts in the model are used for the selection.
PROPPATH— The path value. This is derived from the property value from each node in the assembly to the child node. The property value comes from the group name and property name by using the SelectionPropertyGroupName and SelectionPropertyName widget properties.
PROPVALUE— The value specified by the SelectionPropertyGroupName and SelectionPropertyName properties.
STRING
IDPATH
NA
Was this helpful?