Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Worksets

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
russ.green
1127 Views, 11 Replies

Worksets

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

Russ Green
11 REPLIES 11
Message 2 of 12
russ.green
in reply to: russ.green

Ah..

 

Workset.Create(m_Doc, name)

 

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

Russ Green
Message 3 of 12
rosalesduquej
in reply to: russ.green

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
Message 4 of 12
russ.green
in reply to: rosalesduquej

Yeah that solved it for me thanks

Russ Green
Message 5 of 12
Ning_Zhou
in reply to: russ.green

is it only available in R2? i'm using 2015
Message 6 of 12
russ.green
in reply to: Ning_Zhou

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
Message 7 of 12
Ning_Zhou
in reply to: russ.green

thanks russ, i'm downloading SDK R2 now, hopefully it can also be used in Revit 2015 UR4
Message 8 of 12
jeremytammik
in reply to: Ning_Zhou

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

Message 9 of 12
Ning_Zhou
in reply to: jeremytammik

hi Jeremy, well, cannot for sure unless i installed R2, SDK R2 only confirm that method is not available in UR4, thanks.
Message 10 of 12
Dale.Bartlett
in reply to: Ning_Zhou

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.
Message 11 of 12

Afaik, only Revit 2015 R2.

 

Cheers,

 

Jeremy



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

Message 12 of 12

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.

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


Rail Community