in Visual studio right click on your project and select properties. go to the debug tab in properties and in the "start action" section select Start external program, Browse to the location of the .exe file of the Revit version you are working with.
Join me on Slack -- it’s a faster, simpler way to work. Sign up here, from any device: join.slack.com/t/jacobiandev/shared_invite/zt-1ogoy7s34-oaoSkj3VQnHCMIuuxHxqHQ
I run this example in Visual 2019 latest version and not RUN. But when use Visual 2022 works fine even with Revit 2023. I add some lines in Post build comman line Copy "$(TargetDir)cemexwizard.dll" "$(AppData)\Autodesk\Revit\Addins\2022" if exist "$(AppData)\Autodesk\REVIT\Addins\2022" copy "$(ProjectDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\2022" SET path=$(AppData)\Autodesk\Revit\Addins\2022\Resources if not exist "%path%" mkdir "%path%" if exist "$(AppData)\Autodesk\REVIT\Addins\2022\Resources" copy "$(ProjectDir)\Resources\cemex.ico" "$(AppData)\Autodesk\REVIT\Addins\2022\Resources" Other change was in the configuration manager . I create Platform x64 instead Any CPU
I've recently discovered your videos and are very needed for people like me who wants to learn Revit API. Please keep doing more ;)
Thanks, will do!
Thanks! I stuck on the winform before
No problem. Let me know if you have any issues. Always willing to help.
Hi could you please show mep create cable tray in window form.
How you can auto start the Revit when you start the program ?
in Visual studio right click on your project and select properties. go to the debug tab in properties and in the "start action" section select Start external program, Browse to the location of the .exe file of the Revit version you are working with.
Before to try this you need to review the fisrt video where explain how to create and configure the VS project
Please make more of these
Will do. Thanks
Please show windows form more and show create MEP. Thank you
hi thanks how can i reach you i have a school project that i can ask some guidance
Join me on Slack -- it’s a faster, simpler way to work. Sign up here, from any device: join.slack.com/t/jacobiandev/shared_invite/zt-1ogoy7s34-oaoSkj3VQnHCMIuuxHxqHQ
nice...jacob
Thank you !
I run this example in Visual 2019 latest version and not RUN.
But when use Visual 2022 works fine even with Revit 2023.
I add some lines in Post build comman line
Copy "$(TargetDir)cemexwizard.dll" "$(AppData)\Autodesk\Revit\Addins\2022"
if exist "$(AppData)\Autodesk\REVIT\Addins\2022" copy "$(ProjectDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\2022"
SET path=$(AppData)\Autodesk\Revit\Addins\2022\Resources
if not exist "%path%" mkdir "%path%"
if exist "$(AppData)\Autodesk\REVIT\Addins\2022\Resources" copy "$(ProjectDir)\Resources\cemex.ico" "$(AppData)\Autodesk\REVIT\Addins\2022\Resources"
Other change was in the configuration manager . I create Platform x64 instead Any CPU
Glad you managed to get it working