.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sheet Set Error

1 REPLY 1
SOLVED
Reply
Message 1 of 2
BrentBurgess1980
880 Views, 1 Reply

Sheet Set Error

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
1 REPLY 1
Message 2 of 2

never mind - figured it out - forgot to lock the database

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost