Schau mal in die API-Hilfe unter 'Sheet.AddTitleBlock Method', unten sind 2 Links auf Bsp-Codes.
der 2. Link 'Title Block Definition Create and Insert sample' zeigt wie's geht (Prompted Strings als String-Array übergeben:
' This title block definition contains one prompted string input. An array
' must be input that contains the strings for the prompted strings.
Dim sPromptStrings(1 To 2) As String
sPromptStrings(1) = "String 1"
sPromptStrings(2) = "String 2"
' Add an instance of the title block definition to the sheet.
Dim oTitleBlock As TitleBlock
Set oTitleBlock = oSheet.AddTitleBlock(oTitleBlockDef, , sPromptStrings)
HTH
------------------
Grüsse, Paul
Inventor-Programmierung, Inventor-Tools und Inventor API-Schulung
YouTube Chanel
Meine Tochter auf Youtube
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP