Тёмный

Read Revit file versions using Python (without opening Revit)! 

Aussie BIM Guru
Подписаться 48 тыс.
Просмотров 2,5 тыс.
50% 1

Sharing a pretty disjointed/funky workflow today that I came across and put a few things together for recently - checking Revit file versions using a Python IDE and no need for Revit itself!
0:00 What we will build
1:37 Setting up pyCharm, future and Tkinter
3:20 Scripting begins
3:53 File selection dialogue
8:28 Checking Revit file formats
14:44 Get file path formats
16:03 Isolate version number
18:54 Message to user
20:44 Setting up registry
24:50 Running the tool
25:44 Outro
References that helped me:
Jeremy's blog: thebuildingcoder.typepad.com/...
Sedtec: • Add Python script to r...
I hope you enjoy the session and learn something new! Feel free to comment any feedback/questions below, or follow my channel if you enjoyed this.
Software used;
DaVinci Resolve: www.blackmagicdesign.com/au/p...
OBS: obsproject.com/
pyCharm: www.jetbrains.com/pycharm/
Hardware used;
Webcam: support.logitech.com/en_us/pr...
Laptop: www.msi.com/Workstation/WT75-...
Microphone: www.jbhifi.com.au/products/ro...
Audio interface: focusrite.com/en/usb-audio-in...
#revit #python #bim

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@user-me9qt4ux3m
@user-me9qt4ux3m Год назад
People don't say it often. But you are one of the best..since years. Thank you.. thank you and thank you.🙏👍
@AussieBIMGuru
@AussieBIMGuru Год назад
Thanks for the kind words, and you are welcome!
@LSArchirects
@LSArchirects Год назад
Perfect timing to help with the latest 2024.1 schema bugs!…. Which I may have upgraded a couple of projects too… 🤦‍♂️
@AussieBIMGuru
@AussieBIMGuru Год назад
Ah yes I know the pain as well!
@debaron270602
@debaron270602 Год назад
Great video! Is it possible to access the actual revit database this way to batch check the views' properties or some built-in parameters of some revit elements?
@AussieBIMGuru
@AussieBIMGuru Год назад
Unfortunately not using Revit API etc. Maybe look into this company which reckons they've cracked the code on Revit and offer a software solution for it: www.opendesign.com/products/bimrv
@KervinCalero
@KervinCalero 11 месяцев назад
hmm, I came accross some project files that have built: [wrong year or last date modified] and format: [correct year] 😞, is there a workaround for parsing the binary file in this case? Thank you
@AussieBIMGuru
@AussieBIMGuru 11 месяцев назад
Yes get in excess of the needed characters and then process the string afterwards to detect the syntax in the alternative case. Basically ask the binary to decode more than needed.
@costas92
@costas92 11 месяцев назад
I actually created a very simple script that you can run in powershell that will do the same thing and export everything to an excel file, it does so by scanning the actual code of the file, similar to opening it up in Notepad, and searched for a particular string. Unfortunately this only works with rfa files but it's been a great help in cleaning up our content.
@AussieBIMGuru
@AussieBIMGuru 11 месяцев назад
Nice one! Yes I believe the OLE/binary option is the only safe way to deal with larger files like rvt.
@miapepe
@miapepe 2 месяца назад
sorry for stupid questions, do you have this in opensource? i need to extract information, such as components, sizes and materials from .rvt file in python
@AussieBIMGuru
@AussieBIMGuru 2 месяца назад
Most of that information is not possible without cracking the Revit file format/ole. I believe this has been achieved by some companies who sell this as software, but is well beyond what I know how to do with a raw Revit binary interpreter. This article summarizes it: thebuildingcoder.typepad.com/blog/2010/06/open-revit-ole-storage.html If you mean my code, this is on my github: github.com/aussieBIMguru/Misc/blob/master/ABG_260628_RevitBuilds.zip
@user-cu7vq9is2v
@user-cu7vq9is2v 11 месяцев назад
I actually have a question that's not related to these video, When i Add formula to the parameters using instance parameters, there would be an error, it said that the family is a type driven family and connot be driven by instance parameters. How do i fix this and turn it into instance driven parameter.
@AussieBIMGuru
@AussieBIMGuru 11 месяцев назад
Type parameters cannot be driven by instance parameters. To work around this your driven parameter needs to be changed to instance. If it is an inbuilt parameter you can do this by using it in a dimension/constraint and selecting it, then toggling the Instance tick box in top ribbon.
@abdennourhamaida3497
@abdennourhamaida3497 11 месяцев назад
Thank you
@PANDURANG99
@PANDURANG99 7 месяцев назад
What if my model stored on cloud?
@AussieBIMGuru
@AussieBIMGuru 7 месяцев назад
At that point you would need to look into forge unfortunately. Dynamo isnt built to work with cloud files.
@PANDURANG99
@PANDURANG99 7 месяцев назад
@@AussieBIMGuru for forge there is big learning path. Administrative control, forge paid subscription etc
@AussieBIMGuru
@AussieBIMGuru 7 месяцев назад
Yep there sure is. No way to sugar coat it though, if you want to automate in ACC/BIM360 it's your only option really.
Далее
Is Dynamo becoming too difficult to manage?
27:04
Просмотров 3,2 тыс.
ЮТУБ БЛОКИРУЮТ?
02:04
Просмотров 544 тыс.
Редакция. News: 128-я неделя
57:33
Просмотров 1,8 млн
Dynamo Shorts - Ep009 - Export Sorted Data To Excel
18:04
'Nuke' Revit models using Dynamo, Python + Revit API!
27:38
The Complete Guide to Python Virtual Environments!
15:52
Project Revit floors to topography using Dynamo!
32:24