Results 1 to 6 of 6

Thread: Project vs Shared parameters

  1. #1
    Member
    Join Date
    2007-12
    Posts
    2
    Login to Give a bone
    0

    Default Project vs Shared parameters

    Can the values of project specific paramaters be written to via the API or can only shared parameters be set?

    Apart from achieving parameter naming consistency across multiple projects (which is a very strong argument for using them) their naming inflexibilty (basicly you have to destroy and recreate them) is sometimes a nuisance when you have project element data that you wish to keep. It is not impossible but that in itself needs an API solution to manage it.

    Any thoughts on this would be much appreciated

    Caroline

  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: Project vs Shared parameters

    Hi Caroline,

    Welcome to the AUGI forums. You can access both project and shared parameters the same way, in fact, it's quite easy to access both with Element.Parameters. This will return all the element's parameters regardless of their type.

    Hope that helps,

  3. #3
    Member
    Join Date
    2007-12
    Posts
    2
    Login to Give a bone
    0

    Default Re: Project vs Shared parameters

    Hi Danny,

    Thanks for that. I am picking my way through the SDK and Jeremy Tamic's Labs tutorials but I am not on the SDN yet. Can you suggest any other useful C# and Revit API focused places to help understand the API?

    Caroline

  4. #4
    Member
    Join Date
    2008-07
    Posts
    30
    Login to Give a bone
    0

    Default Re: Project vs Shared parameters

    Anybody can explain how do we access Type Parameters??

    By using the following code (Element Parameters), I only get Instance Parameters; but I need to read/write Type Parameters as well. Is this possible with API?

    // Code to filter/select elements of interest
    foreach (Parameter para in element.Parameters)
    ...

    (This only returns Instance Parameters)

    Thanks in advance for your help,

    ae

  5. #5
    Member
    Join Date
    2008-07
    Posts
    30
    Login to Give a bone
    0

    Default Re: Project vs Shared parameters

    ughh,,, more confusion (I'm relatively newbie to API, please excuse if these are not "smart" questions...)

    So I add a Type Share Parameter to one of the Families in my model.
    Then I use two Sample Codes from SDK to retrieve it: "ShowAllParameters" and "BrowseBindings". None of them recognize this new Type Parameter

    ShowAllParameters uses Element.Parameter to iterate thru all parameters of the element. So my guess is that Element.Parameters doesn't return Type paremeters and only returns Instance Params. Is that true??

    BrowseBinding sample code uses Autodesk.Revit.Parameters.BindingMap; which again doesn't give me this Type Shared Parameter.
    Question here is that if I have used more than one text file to add all my Shared Parameters, do all of those Shared Parameters show up in the BindingsMap? Or, just those that are in the latest (current) text file??


    I also heard of TypeBinding object. There's very little documentation on the Help file and almost nothing the Developer Guide Anybody please help me understand this??


    I appreciate any help,

    Thanks a lot

    -ae

  6. #6
    I could stop if I wanted to
    Join Date
    2007-03
    Location
    Phoenix
    Posts
    261
    Login to Give a bone
    0

    Default Re: Project vs Shared parameters

    Inherently, the Type parameters are different beings. Similar to System Parameters, the attributes therefore are not read/write as in Instance params. Therefore, they are "read" differently. I imagine they can be loaded, as long as the object is loaded, but not listed for editing without wholesale replacing the object... thus the whole Element. I'm digging, too, so those are the only clues I can offer...
    HTH,
    LC
    (glad to 'see' you, A)

Similar Threads

  1. 2015: Shared Project Parameters
    By gra77 in forum Revit MEP - General
    Replies: 2
    Last Post: 2015-03-26, 11:51 PM
  2. 2014: Criteria for Project Parameters vs. Shared Parameters
    By jagostinho in forum Revit - Platform
    Replies: 3
    Last Post: 2014-03-21, 02:46 PM
  3. Shared Project Parameters Through a Link.
    By Revit MEP DR in forum Revit MEP - General
    Replies: 7
    Last Post: 2012-02-07, 08:31 PM
  4. Scheduling Project Information with Shared Parameters in Multi-Building Project
    By ddragoo144336 in forum Revit Architecture - General
    Replies: 0
    Last Post: 2010-08-20, 05:36 PM
  5. Parameters: Shared or Project based
    By techsupport.161645 in forum Revit Architecture - General
    Replies: 2
    Last Post: 2010-01-06, 06:39 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
  •