Hello everyone! I have created masses on the Revit project through extrusion with dynamo scripts. I then linked them to the family again via dynamo scripts. The family they are linked to is an empty family (I need several masses with different shapes in a family). However, when I link the selected objects to the family, it is as if it takes the first of the selected buildings and makes a copy of it in the middle of the project. How do I solve this?
I must point out that the masses as you see them, I moved them to check that they were eight. In fact, before I moved them there were eight masses all the same and superimposed in the same place
Wire the Element.Solids into a Geometry.BoundingBox into the BoundingBox.MinPoint and delete the LinkElement.BoundingBox node.
I can’t see what’s wrong here… it feels a LOT like you’re doing work that need not be done.
What things are you selecting? Why are you trying to duplicate their solids as families?
OK. What I need is to extrude masses at the same time and this is a process I have performed previously and with another script. Once the masses are obtained, I have to assign them to a family. That is, I have to tell it you belong to the ‘buildings’ family, for example. These masses must neither change nor move but only belong to a family.
So you will have to delete the previously existing families after you do this…
Why not use a custom family template with sub categories for the buildings/other and then manage the families that way? Or make one family with all the buildings in it?
Yes, but the important thing is that the masses are individually selectable
They would be - they wouldn’t be selectable as a group, but the sub category control should make things manageable on that front.
OK. I’m trying. I created an empty family with a subcategory called ‘buildings’ which I loaded into the project. Now how should the script be set up?
I believe that you need a family template with that category, not a family itself. Can you post a sample dataset and the modified rfa you’re using?
Sure, here it is. Bear in mind, however, that it is empty precisely because I need the masses to be created individually within the project, each with its own shape, and then connect them to the family
Buildings_S.rfa (508 KB)
Dataset to extrude?
Edifici_1.dwg (186.9 KB)
Another question I wanted to resolve is whether there is a possibility of setting some sort of anchorage in the script on a topography, for example.
It seems like you are pushing beyond the intended limits of Revit here (22 miles from the origin, etc.)… Have you considered moving to a tool like Forma?
Good morning. Could you explain the workflow better?
yes far away from origin,[ over 35 kilometer away… anyway
I’ve tried your file with geometry family instance from spring and made almost 1200 individual families (buildings), so it took a while , but dont fail…maybe it also works with ootb family type by geometry…haven’t tried…maybe faster with directshape…and if you do it as one family with union your solids …and then subcategori…but wondering what it is for…as Jacob mentions, forma is actually built for that kind of thing and will be faster I think…