.obj geometry into Revit

Hi,

I am currently working with https://canvas.io/ and it saves out an obj file of the space I scan.

My question is can I import the .obj file to create as built drawings? I just want to import the scan and trace it in revit.

I can link a scan if that would help.

Dynamo Skills:

Limited but can follow instructions well.

Revit Version:
17.0.1117.0
20170118_1100(x64)
2017.2

Dynamo Version:
1.2.1

Meshtool Kit Version:
1.2.0

1 Like

Probably possible in Dynamo. Meanwhile, paid app in the Revit App Store Mesh Import from OBJ files works: https://apps.autodesk.com/RVT/en/Detail/Index?id=7847254631022872970&appLang=en&

Thank you for the reply.

So I am following breadcrumbs down a rabbit hole here. Found something posted by @jostein_olsen on his twitter feed. Will update as soon as I have time to test.

Ok… So I get and error. This is how far I have made it.

Your method probably has similar limitations as my Mesh Import from OBJ files app. Mesh must be manifold and under around 150K faces.

Try it with a simple mesh, first. E.g.: https://www.turbosquid.com/3d-models/free-obj-mode-gargoyle-statue/583663

@truevis thank you. I will examine my scan and add a couple nodes to simplify the mesh.

Again I’ll post my findings.

mesh toolkit nodes return a different type of mesh than the built in nodes -make sure to use mesh toolkit nodes to get triangles… you can try converting from the imported mesh toolkit mesh to a dynamo mesh (the builtin mesh type) and then using DirectShape.byMesh

1 Like

Take a look at Spring Nodes Mesh.ToPolySurface. It is multithreaded:

You generally have two options. You can either get a native mesh with “Springs.ToolkitMeshToMesh”(faster) and then create a directshape, or extract the triangles, make a unified polysurface and create a “FamilyInstance.ByGeometry”:

If you go with the native mesh route, keep in mind that if your mesh is too complex ( ie it’s a group of meshes or has many voids/openings), the conversion might fail because Dynamo’s native meshes are very limited.

Attempting to make a solid out of a mesh with many triangles is usually not a good idea.

4 Likes

Hi All,

So I thought I’d post an update to my question. First off, my *.obj files were way too dense to import into revit. So I am using a work around using Meshlab server and converting the .obj’s into *.dxf files.

Here is a link to the batch conversion script I found for Meshlab Server.

So this leads me to my next set of questions;

  1. Can I automate the import process of the dxf files?

  2. If yes how do I rotate the files by 90 degrees on the X axis?

Any help is much appreciated.

After some thought I have come up with a new set of questions:

  1. Since Dynamo can rotate me *.obj files, would it be possible to batch rotate with Dynamo and then run the .bat on a output folder all from in Dynamo.

  2. Then batch import the *.dxf files?

Once again any help is much appreciated!

@truevis do you think I could some how use this to process my folder using the meshlab server https://github.com/DynamoDS/Dynamo/wiki/Dynamo-Command-Line-Interface - not sure if I am asking the question right.

Found this as well by @Andreas_Dieckmann https://github.com/andydandy74/DynamoAutomation have no clue how to stitch this stuff together.

The way I’ve done it was to open the OBJ in MeshLab and export to XYZ. Maybe rename the XYZ to PTS for opening in ReCap.

Scripting the process… maybe use AutoHotKey.

Thank you. I’ll look into that.