Separating UI and Logic for FORGE DA - What's the best method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I have a few different tools in my Revit addin SLN, and one shared project that has util methods which are used throughout the tools.
I want to start using Forge DA for some of my tools.
As you know, it's not possible to reference a project with UI in it.
Of course, I never want to copy code, so I won't copy the logic of my project to the DA project.
So, I'm looking for the best way to use my tools both with UI and with Forge DA.
as I see it, there are 2 main options:
1. Using #define statements to only compile logic when compiling my Forge DA project.
2. Separating each tool to 2 projects, UI and Logic.
It sounds like the first option will be much clearer.
Do you know better options? How are you dealing with this limitation?
Thanks in advance! 🙂