PC-DMIS 2022.1 Object Library
CutSelectedToClipboard Method
See Also  Example  Send Topic Feedback | See Object Hierarchy Chart
PCDLRN ActiveX DLL > EditWindow Object : CutSelectedToClipboard Method

Glossary Item Box

Description

This cuts any text or commands selected in the Edit window and stores them in the Clipboard.

Syntax

Visual Basic
Public Sub CutSelectedToClipboard() 

Example

 
This example selects the the last command in the Edit window and cut it to the Clipboard.
Example (Visual Basic)Copy Code
Sub Main
  Dim App As Object
  Set App = CreateObject ("PCDLRN.Application")
  Dim Part As Object
  Set Part = App.ActivePartProgram
  Dim Ew As Object
  Set Ew = Part.EditWindow
  Dim Cmds As Object
  Set Cmds = Part.Commands

 Cmds.SetCurrentCommand Cmds.LastCommand
 Ew.CommandMode
 Ew.SelectCommand
 Ew.CutSelectedToClipboard
 
End Sub

See Also

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