I am trying to create a sheet set and get an error on the line
sheetSet.SetName("Sheet Set")
The error I get is
System.Runtime.InteropServices.COMException (0x80040210): The owner of the PerUser subscription is not logged on to the system specified (Exception from HRESULT: 0x80040210)
at ACSMCOMPONENTS18Lib.AcSmSheetSetClass.SetName(String name)
at KBR.SheetSets.SheetSet.CreateSheetSet()
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.PerDocumentCommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()
Public Sub CreateSheetSet()
' Get a reference to the Sheet Set Manager object
Dim sheetSetManager As IAcSmSheetSetMgr
sheetSetManager = New AcSmSheetSetMgr
' Create a new sheet set file
Dim sheetSetDatabase As AcSmDatabase
sheetSetDatabase = sheetSetManager.CreateDatabase("C:\My Sheet Set.dst", "", True)
' Get the sheet set from the database
Dim sheetSet As AcSmSheetSet
sheetSet = sheetSetDatabase.GetSheetSet()
' Set the name and description of the sheet set
sheetSet.SetName("Sheet Set")
sheetSet.SetDesc("My Sheet Set")
' Return the name and description of the sheet set
' Return the namd and description of the sheet set
MsgBox("Sheet Set Name: " + sheetSetDatabase.GetSheetSet().GetName() + vbCrLf + _
"Sheet Set Description: " + sheetSetDatabase.GetSheetSet().GetDesc())
' Close the sheet set
sheetSetManager.Close(sheetSetDatabase)
End Sub
Can anyone let me know that the PerUser Subscription is?
Thanks