Results 1 to 6 of 6

Thread: 2013 API: View Templates

  1. #1
    Active Member
    Join Date
    2003-08
    Location
    England
    Posts
    87
    Login to Give a bone
    0

    Default 2013 API: View Templates

    Does anyone know if the 2013 API allows view templates to be applied to views?

  2. #2
    I could stop if I wanted to
    Join Date
    2007-02
    Location
    Alexandra, New Zealand
    Posts
    237
    Login to Give a bone
    0

    Default Re: 2013 API: View Templates

    Yes it does. Check out "DB.View.ApplyViewTemplateParamaters" and DB.ViewTemplateApplicationOPtion"

    Cheers

    Phillip

  3. #3
    Active Member
    Join Date
    2003-08
    Location
    England
    Posts
    87
    Login to Give a bone
    0

    Default Re: 2013 API: View Templates

    Thanks very much Philip, I'll check that out.

  4. #4
    Member
    Join Date
    2011-06
    Posts
    28
    Login to Give a bone
    0

    Default Re: 2013 API: View Templates

    I thought this would be more simple...

    I expected something like this to work...

    Dim vTemplate as Autodesk.Revit.DB.View = someView_WhichIsATemplate
    Dim targetView as Autodesk.Revit.DB.View = someView
    targetView.ApplyViewTemplateParameters(vTemplate)

    But, it doesn't work, and Revit throws an exception. Can someone please explain how to assign view templates to views?

  5. #5
    100 Club
    Join Date
    2004-09
    Posts
    104
    Login to Give a bone
    0

    Default Re: 2013 API: View Templates

    I work in C#, so I can't test it but I would suggest this:

    Dim vTemplate as Autodesk.Revit.DB.View = someView_WhichIsATemplate
    Dim targetView as Autodesk.Revit.DB.View = someView

    targetView.ViewTemplateId = vTemplate.Id

  6. #6
    Member
    Join Date
    2012-12
    Location
    Boston, MA
    Posts
    9
    Login to Give a bone
    0

    Default Re: 2013 API: View Templates

    Hi,

    I've posted code showing how to do this at http://boostyourbim.wordpress.com/20...view-template/

    Regards
    Harry

Similar Threads

  1. 2014: Setting Up Project Templates & View Templates???
    By sbrennan in forum Revit MEP - General
    Replies: 4
    Last Post: 2013-08-29, 09:17 PM
  2. 2013 Default View Templates
    By wmullett in forum Revit - Platform
    Replies: 5
    Last Post: 2012-12-20, 03:16 PM
  3. 2013 view templates
    By cr_gixxer in forum Revit Architecture - General
    Replies: 8
    Last Post: 2012-05-03, 01:22 PM
  4. View Filters and view Templates... But not View Templates
    By saeborne in forum Revit Architecture - General
    Replies: 5
    Last Post: 2010-09-13, 04:40 PM
  5. Revit architecture view templates or Revit Structure view templates
    By rob.127056 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2009-02-13, 07:56 PM

Posting Permissions

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