ProApp Designer - Release 14 (Package 22)

CADViewer Control

3DViewer control is used to render CAD viewable associated with a CAD Document item.

  • Name: It is used to uniquely identify control inside the template.
  • Label: It is used to show title on the control. It can be localized by defined Languages and Locales inside innovator.
  • Height: CADViewer control can be rendered in three different modes for the Height.
  • Height: Explicit
  • In this mode, ‘Max Height’ should be supplied to limit the height of the control in the page. Control auto grows until it reaches ‘Max Height’, after that it shows scrollbar.
    • Height: Fit to Content
      In this mode, CADViewer control grows its height without showing any scrollbar. If it doesn’t get required height by the page, then page will start showing scrollbar.
    • Height: Auto
      In this mode, control auto grows until it reaches available page height, after that it shows scrollbar for the body. This mode can be set on the CADViewer control only when the page that contains CADViewer control has only simple form fields apart from this CADViewer control.
  • Show Label: It controls whether Label can be shown at the top of the CADViewer control.
  • Access: It allows you to define the roles which can access control. You can configure Roles (in the form group identities) to whom this control should be shown.
  • Display Condition: Based on the option selected for Display Condition, the control will be shown or hidden in the wizard at runtime. You can select one of the options like ‘Always Show’, ‘Always Hide’, ‘Expression’, or ‘Script’. Expression allows you to define a Boolean expression using properties from the current and previous pages (in case of multi-page application) to conditionally display the control if expression is evaluated to true. Expression will be evaluated based on the cached property values on the client. Script allows you to write custom JavaScript code that should return Boolean value. If returned value is false, the control will be hidden.
  • Font: It allows you to set the required font and size for the control.
  • Margin: It allows you to set the required top, right, bottom, left margins with respect to adjacent controls.
  • OnLoad: OnLoad event allows you to write custom logic that will be executed after the data in the control is loaded. It allows you to write a custom script to find and assign CADDocument id to the CADViewer control. Please refer to the Template Customization section for more details.