Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
Like Tree4Likes

Thread: Can Dynamo write directly to a parameter in a nested Revit family?

  1. #11
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,100
    Current Local Time
    12:35 AM
    I see what's going on. It's going to sound totally backwards:

    Take the parameters OUT of the family.

    Add them to the PROJECT as PROJECT PARAMETERS (shared) that apply to the correct category. Then Dynamo will work.

    Sent from my Pixel 3 XL using Tapatalk

  2. #12
    Member
    Join Date
    April 10, 2014
    Posts
    73
    Current Local Time
    01:35 AM
    Aaron, I've been investigating what you've said. In the family, I have formulas that refer to the to-be-deleted parameters. If I delete the parameters, the formulas disappear, Some re-typing, I suppose. But then how do I enter parameters into the family? The family can't see the project parameters. It can see the same parameters from the shared parameters. Is this a matter of entering them into the Project Parameters then restarting Revit?
    Last edited by Rex Wave; March 6th, 2019 at 01:16 AM.

  3. #13
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,100
    Current Local Time
    12:35 AM
    Quote Originally Posted by Rex Wave View Post
    Aaron, I've been investigating what you've said. In the family, I have formulas that refer to the to-be-deleted parameters. If I delete the parameters, the formulas disappear, Some re-typing, I suppose. But then how do I enter parameters into the family? The family can't see the project parameters. It can see the same parameters from the shared parameters. Is this a matter of entering them into the Project Parameters then restarting Revit?
    No. If you need formulas based on those parameters, then I don't know that Dynamo will succeed.

    SetParameterByName works on shared nested families, without going through the parent, but I've only seen it work with the SP's (instance) added as project parameters. The type parameters should work fine either way, I would think.

    Sent from my Pixel 3 XL using Tapatalk

  4. #14
    Member
    Join Date
    April 10, 2014
    Posts
    73
    Current Local Time
    01:35 AM
    Quote Originally Posted by Twiceroadsfool View Post
    No. If you need formulas based on those parameters, then I don't know that Dynamo will succeed.

    SetParameterByName works on shared nested families, without going through the parent, but I've only seen it work with the SP's (instance) added as project parameters. The type parameters should work fine either way, I would think.

    Sent from my Pixel 3 XL using Tapatalk
    I have added some of the parameters to the project parameters. They are shared and instance. I restarted Revit (in the past, this has worked to fix some things). I would expect the nodes that can write the data to succeed and the others to fail. No love - they all fail to write. You say that this node works on shared nested families without going through the parent. Is there an example available that I can emulate? Very frustrating. Everything works except this last step...

  5. #15
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,100
    Current Local Time
    12:35 AM
    I do it every day, for writing field layout data to families. But the parameters CANT be in the families.

    So for what you want to do, my.sigfedrion won't be the solution.

    When I wrote that, i didnt know you had formulas dependant on it.

    Sent from my Pixel 3 XL using Tapatalk

  6. #16
    Member
    Join Date
    April 10, 2014
    Posts
    73
    Current Local Time
    01:35 AM
    Thanks for digging into it. I have partly succeeded at writing to the parent families. The problem is how to parse the data coming into Dynamo to sort itself to the correct families. Dynamo seems to hate multiple family references in the same graph. I get a picture of a program with a bandage on its head complaining that the virtual machine has blown up.

  7. #17
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,100
    Current Local Time
    12:35 AM
    Did you post the graph and I missed it?

    Sent from my Pixel 3 XL using Tapatalk

  8. #18
    Member
    Join Date
    April 10, 2014
    Posts
    73
    Current Local Time
    01:35 AM
    MacKinnon Interface from Excel to Revit via Dynamo assume DB access.dyn
    Graph is attached. I have previously posted snips of its behaviour in this thread. It populates the parameter names and provides data. Only the last step fails.

  9. #19
    Member
    Join Date
    April 10, 2014
    Posts
    73
    Current Local Time
    01:35 AM
    Quote Originally Posted by jmk View Post
    ... Clockwork has a good node to get the nested subcomponents....
    The problem is writing to Revit, not getting. I wrote a separate graph to get info out of Revit,
    which works well. Excel does the calcs, which I have gotten into Dynamo. The lists look good. Clockwork looks interesting, but I can't determine from the list of nodes what might help me..

  10. #20
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,100
    Current Local Time
    12:35 AM
    I honestly don't think you are going to get the instances to work, WITH formulas, in a nested family, through Dynamo.

    Because the INSTANCE is married to the parent family.

    The way GTP (now APL) handles this is for every nested family parameter it needs to access, it makes (or used to make) a redundant parameter in the host family. Which is.... Yuck.

    That's why I was so glad to discover the project parameters work. But the only way to make the project parameters work for you is to embed the formulas in go Dynamo instead of in the family.

    You keep trying to solve a node or graph problem, but there isn't one. REVIT won't let you do what you're after. Mark and Comments are the only instance parameters that get unlocked in a shared nested family, from the host family. Won't matter WHAT node you use.

    Sent from my Pixel 3 XL using Tapatalk

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Depth of Nested Family for Family Type Parameter
    By GMcDowellJr in forum Architecture and General Revit Questions
    Replies: 10
    Last Post: November 18th, 2016, 04:18 PM
  2. Replies: 0
    Last Post: March 1st, 2016, 09:45 PM
  3. Nested Family with YES/NO Parameter
    By Andres Franco in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: November 12th, 2015, 08:07 AM
  4. Replies: 0
    Last Post: August 31st, 2015, 02:15 AM
  5. Nested Family Parameter not working in Parent Family
    By makaz22 in forum Architecture - Family Creation
    Replies: 6
    Last Post: April 14th, 2014, 06:13 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
  •