GetProductName

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > PDMSystem >

GetProductName

available from build: 20230530

Description

The command returns the name of the PDM Application.

Syntax

call DBWShell("GetProductName")

Results

@SERVICE_PRODUCT_NAME

The name of the PDM Application

Examples

VBS

'.x64

Sub main()
 DBWInit(true)
 call DBWShell( "GetProductName" )
 name = DBWResult("@SERVICE_PRODUCT_NAME")
 DBWMsgBox "PRODUCT NAME: " & name
end sub

.NET

'.x64

sub Main()
 DBWInit(TRUE)
 Set pDBWInit = CreateObject("MwPDMApi.Initialize")
 Set pDBWAppl = pDBWInit.StartConnection(DBWorksApplicationName)
 name = pDBWAppl.PDMSystem.GetProductName()
 DBWMsgBox("Service product name: " & name)
 pDBWInit.EndConnection
end sub