Collapse All Expand All

PC-DMIS 2019 R1 Object Library |
WriteRegistrySettings Method
See Also Send Topic Feedback | See Object Hierarchy Chart

PCDLRN ActiveX DLL > Application Object : WriteRegistrySettings Method

Glossary Item Box

# Description

Writes the current PC-DMIS registry entries and their values to the debug.txt file.

# Syntax

Visual Basic
    Public Sub WriteRegistrySettings()

# Remarks

The debug file is a text file with a default name of debug.txt

When you have PC-DMIS set up to write data to this text file, you can use it to keep track of every action of PC-DMIS. This is useful data to give to Technical Support so that they can track down possible bugs or problems you may be encountering inside of PC-DMIS.

When you run a script with this method, all the registry entries get appended to the end of your debug file. You will see a line that says:

//// Start of registry settings ////

Following this line you will find all the registry entries and their values. After the final entry, PC-DMIS shows this line:

//// End of registry settings ////

This file is located in this directory:

- XP:
  C:\Documents and Settings\All Users\Application Data\WAI\PC-DMIS\<version>

- Vista/7:
  C:\ProgramData\WAI\PC-DMIS\<version>

# Example

' This code sample writes all of PC-DMIS’s registry entries and their values to the debug.txt file:

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myapp.WriteRegistrySettings

# See Also

Application Object | Application Members

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.