Results 1 to 5 of 5

Thread: New to the API - Is this possible?

  1. #1
    Active Member
    Join Date
    2008-02
    Posts
    58
    Login to Give a bone
    0

    Default New to the API - Is this possible?

    As stated, I've just started working with the Revit API and I've been unable to find a way to do a few things that I'd like to do. If any of these can be done, I could use some direction as to how they're done.

    1) Can I create Design Options? Can I add an element to an existing Design Option?
    2) Can I create or load a new system family types like WallType or RoofType?
    3) Can I set the active document?

    Thanks in advance for any assistance.

  2. #2
    I could stop if I wanted to Danny Polkinhorn's Avatar
    Join Date
    2003-12
    Location
    San Francisco, CA
    Posts
    448
    Login to Give a bone
    0

    Default Re: New to the API - Is this possible?

    Quote Originally Posted by abe.buckingham View Post
    1) Can I create Design Options? Can I add an element to an existing Design Option?
    2) Can I create or load a new system family types like WallType or RoofType?
    3) Can I set the active document?
    1) No and No. Element.DesignOption is read-only.
    2) Load, Yes: LoadFamily Create, No. Duplicate, Yes.
    3) No, but you can open a document and access it even if it is not the active document. ActiveUIDocument is read-only in 2011.

    Sorry, not much there yet...
    Danny Polkinhorn
    Autodesk

  3. #3
    Active Member
    Join Date
    2008-02
    Posts
    58
    Login to Give a bone
    0

    Default Re: New to the API - Is this possible?

    Thanks for clarifying. I have tried to use the LoadFamily and LoadFamilySymbol methods to load system types but it's not working. No errors are thrown but the families are not entering the document I'm attempting to load into. Could this be because the families are not in family documents? Is their any way to create a .rfa for CurtainSystems or Walls? Is their another way to do this?

  4. #4
    All AUGI, all the time Ning Zhou's Avatar
    Join Date
    2006-08
    Posts
    613
    Login to Give a bone
    0

    Default Re: New to the API - Is this possible?

    from Autodesk Revit 2011 API Developer Guide -> API access to system family editing is not available.

    besides, there's no way or no point to use LoadFamily and LoadFamilySymbol methods to load system types.

  5. #5
    Active Member
    Join Date
    2008-02
    Posts
    58
    Login to Give a bone
    0

    Default Re: New to the API - Is this possible?

    Ok, so basically everything I need to do is impossible. Back to journal scripts for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •