I've taken a look and the only post on the 21 June refers to " CATIA.StartCommand("Define Contextual Links"), and a send key with enter, to press the ok "
Don't really understand what that's doing.
I was playing with the idea of a few little scripts to copy some of the properties to clipboard to save me going back and forth to the part.
I tend to add 'Material Grade', 'Stock Size' & 'Mass' properties boxes to my parts when I model them.
This is the code I botched together from other bits of code to copy the part number. Cant get it to work properly as it copies the whole path
--------------------------------------------------------
Sub CATMain()
Set partDocument1 = CATIA.ActiveDocument
Dim drawingDocument1 'As Document
Set drawingDocument1 = CATIA.ActiveDocument
Dim drawingSheets1 'As DrawingSheets
Set drawingSheets1 = drawingDocument1.Sheets
Dim drawingSheet1 'As DrawingSheet
Set drawingSheet1 = drawingSheets1.ActiveSheet
Dim drawingViews1 'As DrawingViews
Set drawingViews1 = drawingSheet1.Views
Dim drawingView1 'As DrawingView
Set drawingView1 = drawingViews1.ActiveView
drawingView1.Activate
Dim FullName
FullName = drawingView1.GenerativeBehavior.document.ReferenceProduct.Parent.FullName
strNewNumber = FullName
sString = strNewNumber
'--------------copy to clipboard -------------------------------------
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("clip")
Set oWrite = oExec.stdIn
oWrite.WriteLine sString
oWrite.Close
End Sub