Announcement

Collapse
No announcement yet.

Read only Parameter error from Element.SetParameterByName node?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Read only Parameter error from Element.SetParameterByName node?

    see this. Why would the built in Revit Sheet Number parameter throw a read only error?
    I'm retired, if you don't like it, go around!

    #2
    What element are you feeding the node?


    Sent from my iPhone using Tapatalk
    Greg McDowell Jr
    about.me/GMcDowellJr

    Comment


      #3
      A sheet list


      Sent from my iPhone using Tapatalk
      I'm retired, if you don't like it, go around!

      Comment


        #4
        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
        Greg McDowell Jr
        about.me/GMcDowellJr

        Comment


          #5
          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
          Last edited by Dave Jones; April 16, 2017, 04:23 PM. Reason: added credit
          I'm retired, if you don't like it, go around!

          Comment


            #6
            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.

            Sol Amour

            Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
            Portfolio Website @ Cargo Collective

            Comment


              #7
              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
              Last edited by Dave Jones; April 16, 2017, 03:53 PM. Reason: added info
              I'm retired, if you don't like it, go around!

              Comment


                #8
                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.

                Sol Amour

                Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
                Portfolio Website @ Cargo Collective

                Comment


                  #9
                  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
                  Greg McDowell Jr
                  about.me/GMcDowellJr

                  Comment


                    #10
                    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

                    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!
                    I'm retired, if you don't like it, go around!

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X