Worksets

Worksets

russ.green
Advocate Advocate
1,390 Views
11 Replies
Message 1 of 12

Worksets

russ.green
Advocate
Advocate

Are there any ways I might be able to create worksets for new models beyond the first 2 when using EnableWorksharing?

Russ Green
0 Likes
Accepted solutions (1)
1,391 Views
11 Replies
Replies (11)
Message 2 of 12

russ.green
Advocate
Advocate
Accepted solution

Ah..

 

Workset.Create(m_Doc, name)

 

Don't know what that too me so long to find.

Russ Green
Message 3 of 12

rosalesduquej
Alumni
Alumni

Hi Russ,

 

Is this working for you ? or do you still need help from us ? 

 

Thanks,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 4 of 12

russ.green
Advocate
Advocate

Yeah that solved it for me thanks

Russ Green
0 Likes
Message 5 of 12

Ning_Zhou
Advocate
Advocate
is it only available in R2? i'm using 2015
0 Likes
Message 6 of 12

russ.green
Advocate
Advocate

Not sure.  I do have R2 installed so could be.

 

I'm using it like this. where m_Doc is the current document

 

    CreateWorkset("workset name here")

    Private Sub CreateWorkset(name As String)
        Using t As New Transaction(m_Doc, "Create Workset")
            If t.Start Then
                Workset.Create(m_Doc, name)
                t.Commit()
            End If
        End Using
    End Sub

 

Russ Green
0 Likes
Message 7 of 12

Ning_Zhou
Advocate
Advocate
thanks russ, i'm downloading SDK R2 now, hopefully it can also be used in Revit 2015 UR4
0 Likes
Message 8 of 12

jeremytammik
Autodesk
Autodesk

Hi Ning.

 

Can it?

 

Cf. 

 

http://forums.autodesk.com/t5/revit-api/r2-vs-ur4/td-p/5382029

 

Thank you!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 9 of 12

Ning_Zhou
Advocate
Advocate
hi Jeremy, well, cannot for sure unless i installed R2, SDK R2 only confirm that method is not available in UR4, thanks.
0 Likes
Message 10 of 12

Dale.Bartlett
Collaborator
Collaborator

Hi,

I have yet to start porting to 2015, and this topic has caught my attention. It is a troubling turn of events if different sub-flavours of Revit (R2 vs UR4) have different API capability. For the moment, can someone please confirm whether Workset.Create is available in standard Revit 2015? Or only in UP4? Or only in R2? Many thanks, Dale

 




______________
Yes, I'm Satoshi.
0 Likes
Message 11 of 12

jeremytammik
Autodesk
Autodesk

Afaik, only Revit 2015 R2.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 12 of 12

Dale.Bartlett
Collaborator
Collaborator

Thanks Jeremy,

I have taken the discussion over to:

http://forums.autodesk.com/t5/revit-api/r2-vs-ur4/m-p/5439929#M8067

 

 

Regards, Dale

 




______________
Yes, I'm Satoshi.
0 Likes