Hi All,
Is it possible to read out which marked set is used and place it in a variable?
Is it possible to read out which marked set is used and place it in a variable?
Sub Main Dim PP As Object Dim markedSetNameOut As String Dim markedSetIndexCounter As Long ''Dim GetExecutionMarkedSetIndex As Long Dim currentMarkedSetIndex As Long Set Pcdmis = Nothing Set Pcdmis = GetObject("", "PCDLRN.Application") Set PP = Pcdmis.ActivePartProgram currentMarkedSetIndex = PP.GetExecutionMarkedSetIndex() If (PP.GetMarkedSetName(markedSetIndexCounter, markedSetNameOut) = -1) Then MsgBox "True - " & markedSetNarmeOut Else MsgBox "False - There is no marked Set For the passed index" End If End Sub
Comment