erfajo / OrchidForDynamo

This repository contains the content of the Orchid package for Dynamo
http://www.dynamobim.com
Other
100 stars 55 forks source link

Document LoadFamily Revit 2023 #169

Closed matius0013 closed 5 months ago

matius0013 commented 1 year ago

Hi I'm trying make script who load families to multiple rvt files. I can't find File.LoadFamily document. Avaible is only node who's load families to active project file. I see the revit files are open and close in bacground but family is not loaded to them. What I doing wrong ? Revit 2023 Orchid 213

MULTI RODZINY_V1_2022-10-24_10-11-11 excample

erfajo commented 1 year ago

I think you are looking for these nodes... Document.LoadFamily and/or Family.Load File+Fam-Load

matius0013 commented 1 year ago

Why you conncect Document.LoadFamily witch .rvt document ? I don't understand this becouse in enter node Document.LoadFamily is .rfa document? Where is connection beetwen family and model files? Im example under it is clear becuse File.LoadFamily is concenction with rfa and rvt files in this same time

And I should use red or blue node?

image

erfajo commented 1 year ago

Sorry for the old sample I did show you. the node is renamed... Family.Load and it takes an (family)document as input, it dont take a file any longer. File+Fam-Load

Kickdak commented 1 year ago

@erfajo will it work with multiple project files, since u have removed the document input? I tried the setup in the image above, but it seems to only work in the file that I open dynamo through.

erfajo commented 1 year ago

That is correct. Is there a need for opening multiple project files for loading multiple families? Opening multiple project files will consume much memory and on top of that opening multiple families... So yes I removed that option since I didn't think anyone used it.

matius0013 commented 1 year ago

Hi, for example i have a few reinforcement model in project and i need update sheet family.

Kickdak commented 1 year ago

@erfajo I have a similar case to @matius0013. I need to update an annotation family in multiple project files. It will come to regular updates on this annotation and would save some effort if I could just press play and let it do its thing. I'm sure there are other families this would be suitable to use.

erfajo commented 1 year ago

I see... and I understand now that for bulk actions has it not been a good decision to deprecate Document.LoadFamily. Therefore have I returned it, however, in a better version I hope.

The node takes now a list of files (strings) for families due to bulk load and closes the families again after they have been loaded into documents (which also comes as a list). The Documents may be passed on for more handling before closing if needed...

By doing this I optimize the usage for bulk actions and NOT for single document family load purposes. BulkLoadFamily

Kickdak commented 1 year ago

@erfajo this script worked perfectly when I had the files local! But another case soon appeared when I realized that all my models are in the acc cloud or bim360... Is there a way to use the same setup here but change it to multiple cloud models?

erfajo commented 1 year ago

script? what is that??? I work with graphs, please elaborate.

Sadly, anything in BIM360 is not handled the same way as normal files, this is why my company doesn't use BIM360. Meaning I don't have access to BIM360 and I, therefore, cant create and test nodes for that environment.

What we do is "repathing" projects when the projects return to us (I am in the REFM business), as shown below…

LinkedCloudDocumentRepath LinkedCloudDocumentRepath.dyn.txt

J3deye commented 1 year ago

@erfajo this script worked perfectly when I had the files local! But another case soon appeared when I realized that all my models are in the acc cloud or bim360... Is there a way to use the same setup here but change it to multiple cloud models?

you do have a local model file location in BIM360 that you can work with in Dynamo but its going to be a pain and you cant work with them in bulk.

erfajo commented 1 year ago

You have only a local file if you are the creator of the file... In my case am I in the REFM business. Meaning I receive files from our business partners, I have nothing and must therefore relink everything. This is why we require that all files are relinked when uploading to our web platform. To help our business partners I created the shown process (and nodes). The problem includes also contractors that are dependent on models made by others… Autodesk has really made something that is a nightmare for many with this crappy BIM360 :-S