Create a right-click menu item for Launching a URL with arguments - Intergraph Smart Construction - Hotfix 11 - Customization & Programming - Hexagon

Intergraph Smart Construction Customization

Language
English
Product
Intergraph Smart Construction
Search by Category
Customization & Programming
Smart Construction Version
8

The SmartConstructionLaunchURL method is available for implementation as a custom right-click menu option on objects related to the method. The method launches a URL in either the current browser window or a new window.

SmartConstructionLaunchURL takes two arguments.

  • URL - This argument can be the path name of a page or the fully qualified URL. In the URL string, you can also pass properties from the context object or a related object, or you can pass a set of environment type variables as constants. These constants are substituted at runtime for actual values.

    • The URL supports any valid protocol prefix, such as http, https, ftp, and mailto. However, if you wish to use relative URLs that launch pages in the SmartPlant Foundation site, you must prefix the Arg1 value with the Env.ServerURL variable.

    • Valid constants that can be appended to the argument of the method include the properties in the following syntax:

      • Obj.[any property on the object]

      • Obj->[PathDefn.Property] – PathDefn can be an edge definition or a relationship definition. For example, Obj->SPFItemOwningGroup_12.Name or Obj->EDG_EdgeName.Name

  • Display mode - This argument sets how the URL displays:

    • OPEN - the URL opens in a separate window.

    • FRAME - the URL opens in a client internal frame.