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 Tree13Likes

Thread: Categories in 2018 vs 2019

  1.    #1
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    11:09 PM

    Categories in 2018 vs 2019

    A bunch of my graphs have been broken recently & I just found out why
    I had used the "Categories" node in a lot of places, but I just figured out that doesn't work between versions.
    It's a drop-down list, and apparently just saves an index number, not the actual Category
    One example: in Revit 2019, I set it to "Viewports"
    When I open the same graph in 2018, that node is set to "Titleblocks". Nothing has changed, it just doesn't work the same between versions.
    Not sure if this is a Dynamo 2.0 thing or a Revit 2019 or what, since I've used that node from 2015 through 2018 without problems.

    Anyway, the fix (and probably better method anyway) is to use the Category.ByName node instead.
    Categories in 2018 vs 2019-category-name.png
    cellophane and CRapai like this.

  2.    #2
    Member johnp's Avatar
    Join Date
    March 24, 2015
    Posts
    148
    Current Local Time
    10:09 PM
    I think this is related to this, https://github.com/DynamoDS/Dynamo/issues/9495. In short, they have fixed it for release in Dynamo 2.1.0. Category.ByName is going to be a preferred method if you are not needing the category to be easily switchable by end users (dynamo player).
    Twiceroadsfool and Mengelmn like this.

  3.    #3
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,036
    Current Local Time
    11:09 PM
    Quote Originally Posted by johnp View Post
    I think this is related to this, https://github.com/DynamoDS/Dynamo/issues/9495. In short, they have fixed it for release in Dynamo 2.1.0. Category.ByName is going to be a preferred method if you are not needing the category to be easily switchable by end users (dynamo player).
    Well ****. I have a bunch of graphs to fix on our server now. LMAO

    Sent from my Pixel 3 XL using Tapatalk
    ScubaMan likes this.

  4.    #4
    Member johnp's Avatar
    Join Date
    March 24, 2015
    Posts
    148
    Current Local Time
    10:09 PM
    No problemo! We can do a batch replace on all DYNs by reading as text files with dynamo.
    Twiceroadsfool and ScubaMan like this.

  5.    #5
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,036
    Current Local Time
    11:09 PM
    Quote Originally Posted by johnp View Post
    No problemo! We can do a batch replace on all DYNs by reading as text files with dynamo.
    Well in that case.... You have a bunch of graphs to fix on the server. LMAO

    JK.

    Actually I'll ask about that tomorrow. Cuz I have to embed some except logic in uncrapifier. And uncrapifier has about 30 category selectors. Hahahaha

    Sent from my Pixel 3 XL using Tapatalk

  6.    #6
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,104
    Current Local Time
    12:09 AM
    Quote Originally Posted by johnp View Post
    No problemo! We can do a batch replace on all DYNs by reading as text files with dynamo.
    Couldn't you also do that in Notepad++? Or would that only work with 1.3 graphs?

  7.    #7
    Member johnp's Avatar
    Join Date
    March 24, 2015
    Posts
    148
    Current Local Time
    10:09 PM
    You can definitely do it in Notepad++ If I were to batch it over a directory of files, I would probably resort to Dynamo though. Can you batch replace across files in Notepad++?

  8.    #8
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    11:09 PM
    Just out of curiosity, could you post a before and after screenshot?
    Since you're replacing one node with two, I'm just curious how that works.
    I've got one that deletes all Demolished items & it's got 25 "Categories" nodes

  9.    #9
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,104
    Current Local Time
    12:09 AM
    You sure can: https://superuser.com/questions/1003...-using-notepad

    you can also use regex in your searches. I like that one for converting a flat list (item1, item2, item 3) to a list with returns:
    item 1
    item 2
    item 3

    johnp likes this.

  10.    #10
    Member johnp's Avatar
    Join Date
    March 24, 2015
    Posts
    148
    Current Local Time
    10:09 PM
    I might have spoke to soon on this one. I had previously used this method to replace code in a code block across dozens of dynamo files. Similar, but different scenarios.

    Also, I would be replacing the dropdown with a code block, so that would have been one node.


    However, the string value of the dropdown is not exposed in Dynamo 2.0.2 or earlier. This means that we cannot extract the selected category name pre-2.1.0.


    That being said, if you were to wait until Dynamo 2.1.0 is released, to upgrade your Dynamo 1.3.x graphs, then you should not have this issue. I have actually been advising my clients to wait for Dynamo 2.1.0 before upgrading. There are supposed to be a whole lot of search improvements and things like that. (publicly available knowledge via GitHub, https://github.com/DynamoDS/Dynamo/commits/master)
    Attached Thumbnails Attached Thumbnails Categories in 2018 vs 2019-2019-03-26_8-10-30.png   Categories in 2018 vs 2019-2019-03-26_8-12-00.png  
    Last edited by johnp; March 26th, 2019 at 02:18 PM.
    GMcDowellJr likes this.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: August 21st, 2018, 01:45 PM
  2. Replies: 0
    Last Post: May 2nd, 2018, 09:15 AM
  3. Revit 2018 and Revit 2019 Not Save Snap Setting
    By Vimanus in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: April 20th, 2018, 06:13 PM
  4. Replies: 2
    Last Post: November 21st, 2016, 06:12 PM
  5. Family Categories and sub-categories: any decent documentation
    By demvox in forum MEP - Family Creation
    Replies: 2
    Last Post: September 28th, 2012, 03:18 AM

Posting Permissions

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