In UI, [Place Component] can select multi documents. You can do so by the API OnFileInsertDialog. The documents name should be separated by ‘|’.
' delegation function
Private Sub oFileUIEvents_OnFileInsertDialog( _ ByRef FileTypes() As String, _ ByVal DocumentObject As Inventor._Document, _ ByVal ParentHWND As Integer, _ ByRef FileName As String, _ ByRef RelativeFileName As String, _ ByRef LibraryName As String, _ ByRef CustomLogicalName() As Byte, _ ByVal Context As Inventor.NameValueMap, _ ByRef HandlingCode As Inventor.HandlingCodeEnum) FileName = "c:temppart2.ipt|c:temppart3.ipt" HandlingCode = HandlingCodeEnum.kEventHandled End Sub ' start FileUIEvents

Leave a Reply