Exporting geometry from dynamo

Hello everyone,
I would appreciate your help with an issue I’m facing in Dynamo. I’m relatively new to Dynamo and have encountered a problem with exporting geometries. My script shows that the locations of the geometries are correct, but when I use ImportInstance.ByGeometry to bring them into Revit, they are misaligned. What might be causing this issue, and how can I ensure the geometries are correctly aligned in Revit?

Hi @a.hemmatian welcome to the community.

You are getting to import the geometry with ImportInstance.ByGeometry but instead i would suggest you to go ahead with FamilyInstance.ByGeometry
Also have a look at this thread FamilyInstance.ByGeometry doent create family - #6 by Nick_Boyts

1 Like

Hi Amirreza,
It can help when you export a Dynamo graph to zoom in so that the node names and details are visible and then export the image using the menu in the top right of the Dynamo window - it’s ok if you are zoomed in - it will capture the entire workspace.

To import Dynamo geometry you could try DirectShape.ByGeometry (This is in the post solution linked by @bharat.minocha) as FamilyType.ByGeometry if for use with a .rfa family

2 Likes

I think what’s important here is where are you taking the geometry from? There could be different reasons why internal coordinates are misaligned, so let’s start from that :slight_smile: I also couldn’t read your graph from the image. If you could share a sample file, that would help us help you even better :slight_smile:

Hi Danail,
Thanks for response. I am taking the geometry directly from Revit with Select surface.

Thanks Mike!

I see, but what is your intention in this case. Why do you need to get geometry from Revit and import it back in the same file? maybe you can then also show us the exact surfaces you select with the first nodes. As they are both marked as the ones that “Select Upper surface”

Sorry for delayed response. I selected the upper surface of the footer and bottom surface of each footer and then I wanted to generate zone of influence which is a sloped mass all around the footers if that makes sense.

I see, well I’d suggest the issue is in your Revit file and most probably project base point is moved away from the internal origin. Could you check if that is the case?