Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
Like Tree4Likes

Thread: Read only Parameter error from Element.SetParameterByName node?

  1. #1
    Moderator
    "I am NOT a Revit tutor!"
    Dave Jones's Avatar
    Join Date
    December 7, 2010
    Location
    San Luis Obispo, California USA
    Posts
    4,486
    Current Local Time
    02:54 AM

    Read only Parameter error from Element.SetParameterByName node?

    see this. Why would the built in Revit Sheet Number parameter throw a read only error?

  2. #2
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,556
    Current Local Time
    02:54 AM
    What element are you feeding the node?


    Sent from my iPhone using Tapatalk

  3. #3
    Moderator
    "I am NOT a Revit tutor!"
    Dave Jones's Avatar
    Join Date
    December 7, 2010
    Location
    San Luis Obispo, California USA
    Posts
    4,486
    Current Local Time
    02:54 AM
    A sheet list


    Sent from my iPhone using Tapatalk

  4. #4
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,556
    Current Local Time
    02:54 AM
    At least in earlier versions of Dynamo, not all parameters could be obtained this way. You has to use Built-In parameters. Still, I'd surprised this was one that needed it. There aren't non-editable sheets in the list, like from a linked model, by chance?


    Sent from my iPhone using Tapatalk

  5. #5
    Moderator
    "I am NOT a Revit tutor!"
    Dave Jones's Avatar
    Join Date
    December 7, 2010
    Location
    San Luis Obispo, California USA
    Posts
    4,486
    Current Local Time
    02:54 AM
    Quote Originally Posted by GMcDowellJr View Post
    At least in earlier versions of Dynamo, not all parameters could be obtained this way. You has to use Built-In parameters. Still, I'd surprised this was one that needed it. There aren't non-editable sheets in the list, like from a linked model, by chance?
    Sent from my iPhone using Tapatalk
    nope, in project sheets using the OOTB Revit Sheet Number instance parameter. Add Sheet Numbers.dyn is attached. The idea is to connect the String.Insert wire in the Add Temp Suffix group to the Element.SetParameterByName node to add a "z" suffix to all sheets including the sheets being added to get around the Revit duplicated sheet error. Then connect the wire from the String.Insert wire from the Add Sheet Prefix group to the Element.SetParameterByName node to delete the suffix. The initial wire connection brings the error on Run

    btw, credit for this graph to Michael KilKelly at ArchSmarter in a YouTube tut
    Attached Files Attached Files
    Last edited by Dave Jones; April 16th, 2017 at 04:23 PM. Reason: added credit

  6. #6
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    10:54 AM
    There is a known bug that is looking at getting addresses in a future release of Dynamo. Basically, there is a conflict issue between named parameters and 'nicknamed' parameters.

    The best work-around at present is to use the Built-In Parameters in lieu of the nicknames.

  7. #7
    Moderator
    "I am NOT a Revit tutor!"
    Dave Jones's Avatar
    Join Date
    December 7, 2010
    Location
    San Luis Obispo, California USA
    Posts
    4,486
    Current Local Time
    02:54 AM
    Quote Originally Posted by amoursol View Post
    There is a known bug that is looking at getting addresses in a future release of Dynamo. Basically, there is a conflict issue between named parameters and 'nicknamed' parameters.

    The best work-around at present is to use the Built-In Parameters in lieu of the nicknames.
    isn't the instance parameter "Sheet Number" an OOTB built in parameter? The project that I'm running this graph on has no project parameters so in theory only built in parameters would be available. Unless I'm unclear on the concept which could certainly be the case as I'm only a few days into the Dynamo learning process.

    I'm attaching a small project file with the sheets created. I have sheets A100 thru A180 and A200 thru A205. I'm trying to add 5 sheets into the list in the A100 series and they are included in the sheet list with an "A" suffix to get them in the correct order where I would like them added.

    I am using Dynamo 1.2.1 in Revit 2015

    Edit: just for grins I installed Dynamo 1.3 and ran the graph in R2017.2 and it works perfectly. Some issue with either Dynamo 1.2.1 or R2015 or both
    Attached Files Attached Files
    Last edited by Dave Jones; April 16th, 2017 at 03:53 PM. Reason: added info

  8. #8
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    10:54 AM
    I tried to find the Github link but failed... not my day I guess

    Effectively, there is multiple parameters in Revit called the same thing. So it get's confused and tries to set the 'Read Only' data rather than the other. It's because the Revit API is 'fun'. It's definitely random in it's uptake - and generally you don't see the issue.

  9. #9
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,556
    Current Local Time
    02:54 AM
    Yes, in 1.3 they improved the handling of parameter names. What used to require a BUILT-IN can now be done with the "nicknamed" versions.


    Sent from my iPhone using Tapatalk
    amoursol likes this.

  10. #10
    Moderator
    "I am NOT a Revit tutor!"
    Dave Jones's Avatar
    Join Date
    December 7, 2010
    Location
    San Luis Obispo, California USA
    Posts
    4,486
    Current Local Time
    02:54 AM
    Quote Originally Posted by amoursol View Post
    I tried to find the Github link but failed... not my day I guess

    Effectively, there is multiple parameters in Revit called the same thing. So it get's confused and tries to set the 'Read Only' data rather than the other. It's because the Revit API is 'fun'. It's definitely random in it's uptake - and generally you don't see the issue.
    thanks amoursol! lots to learn about the idiosyncracys of Dynamo

    Quote Originally Posted by GMcDowellJr View Post
    Yes, in 1.3 they improved the handling of parameter names. What used to require a BUILT-IN can now be done with the "nicknamed" versions.
    Sent from my iPhone using Tapatalk
    well, that sorta sucks since I have 3 projects going in R2105. Oh well, the graph will be useful in the future. Thanks Greg!
    amoursol likes this.

Page 1 of 2 12 LastLast

Similar Threads

  1. Trying to get an elevation tag to read a parameter
    By joewallace in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: March 16th, 2017, 09:11 PM
  2. Node to read totals from schedules.
    By Revitaoist in forum Dynamo BIM
    Replies: 4
    Last Post: November 20th, 2015, 07:45 AM
  3. How to read/edit lighting fixture parameter
    By kukuzry in forum Third party Add-Ins, API and R&D
    Replies: 1
    Last Post: January 23rd, 2014, 03:39 AM
  4. Building Coder: Read Material Asset Parameter
    By Building Coder in forum Blog Feeds
    Replies: 0
    Last Post: January 30th, 2013, 10:15 AM
  5. Door tag to read parameter
    By Alfienoakes in forum Architecture and General Revit Questions
    Replies: 28
    Last Post: July 14th, 2011, 09:08 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
  •