PC-DMIS 2022.1 Object Library
SetupFeatureBasedMeasurement Method
See Also  Example  Send Topic Feedback | See Object Hierarchy Chart
FileName
Full pathway to the text file with the XML content.
PCDLRN ActiveX DLL > PartProgram Object : SetupFeatureBasedMeasurement Method

Glossary Item Box

Description

This method calls a text file as a string. The XML content in the text file defines the features or dimensions you want to use for feature based measurement. Based on the contents of the XML, PC-DMIS can marks those commands, and any dependent commands.

Syntax

Visual Basic
Public Sub SetupFeatureBasedMeasurement( _
   ByVal FileName As String _
) 

Parameters

FileName
Full pathway to the text file with the XML content.

Example

Suppose you a text file named ImportFBM.txt,  the text file resides in side of your in a d:\temp\ folder, and it contains this XML content:

<?xml version="1.0"?>

<!--PC-DMIS XML Output File-->

<FeatureBasedMeasurement>

<Feature ID="CIR1" Marked="True" MarkDependencies="True" UID="57" />

<Feature ID="PNT2" Marked="True" MarkDependencies="True" UID="93" />

<Dimension ID="LOC1" Marked="True" MarkDependencies="True" UID="169" />

<Dimension ID="LOC2" Marked="True" MarkDependencies="True" UID="268" />

<GroupStart ID="GRP3" Marked="True" />

</FeatureBasedMeasurement>

The example script below reads that XML content. It marks those features and dimensions, and it marks any other dependent commands.

Example (Visual Basic)Copy Code
Dim DmisApp As Object
Dim DmisPart As Object

Sub Main
  Set DmisApp = CreateObject("PCDLRN.Application")
  Set DmisPart = DmisApp.ActivePartProgram

DmisPart.SetupFeatureBasedMeasurement "d:\temp\importFBM.txt"

End Sub

See Also

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