Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Is there a way to look up abbreviation in entire project and make a text note? Or check against another list of abbreviations with Dynamo?

carlos3AR8B
Enthusiast

Is there a way to look up abbreviation in entire project and make a text note? Or check against another list of abbreviations with Dynamo?

carlos3AR8B
Enthusiast
Enthusiast

I'm having a bit of trouble on where to start. I'm a bit new to Dynamo. I'm looking for a way to search all my text notes in my project against a list of abbreviations and have it report to me if its in the project or not. It can report true and false that its in the Revit file and that it is not. The picture is what I have so far. But I'm not that experienced. Right now I got to look up one abbreviation CONC but I end up getting CONCRETE as well and I'm not sure how to stop that from occurring. There is about 100 abbreviations I have to look up. Any help would be appreciated. 

0 Likes
Reply
337 Views
3 Replies
Replies (3)

jeremy_tammik
Autodesk
Autodesk

Yes, that is definitely doable. .NET provides a whole bunch of string comparison and matching functionality, regardless of what language you use, including C#, Python, and all other options. In your case of abbreviations, you seem to require matching whole word only, so that CONC matches and CONCRETE does not.

   

However, if your questions is specifically targeted at a Dynamo implementation, you will be better served in the Dynamo forum rather than here, where we focus on the pure, generic .NET Revit API:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

carlos3AR8B
Enthusiast
Enthusiast

Oh thank you for you post

0 Likes

ctm_mka
Advocate
Advocate

try replacing string.contains node with string.equals, if that exists

0 Likes