dosymep / revit-bim

Custom exporter from Autodesk Revit to .bim file
MIT License
4 stars 2 forks source link

Help needed? #1

Open paireks opened 1 year ago

paireks commented 1 year ago

Hey!

I stumbled upon this repository and it looks promising, however I don't know what is the issue which make it hard to make it correct. I'm not familiar with Revit API, is it something on Revit's API side which makes it difficult to take all the meshes? I know that @ricaun tried some Revit -> .bim in the past, which looked correct, but I don't know how it ended :) If there is something unclear on a .bim side, let me know! I'd love to see Revit - .bim integration some day ;)

Best regards, Wojciech

ricaun commented 1 year ago

@paireks I stopped working with .bim inside Revit because of the face_colors that make the file too big.

I did not use document.Export but by looking at the sample.bim your color has alpha equal to zero, that could be an issue.

And this looks in the wrong place. https://github.com/dosymep/revit-bim/blob/5a8951f512e764f789f1b0b63c75446318f85b40/src/dosymep.Revit.Bim.Export/BimExport.cs#L135C1-L135C1

Using GetPoints and add directly in the Coordinates gonna work 😀

dosymep commented 1 year ago

@paireks, when I unload the vertices of triangles from the revit, for some reason the order of the vertex indices turns out to be incorrect, and because of this, the geometry turns out to be torn. So I have abandoned the development for the time being. Also I have not yet tried to properly display the colors of the meshes.

One Wall ![image](https://github.com/dosymep/revit-bim/assets/5417225/259fad97-d0fd-4ebc-bcbe-c1deec7aadc9)
paireks commented 1 year ago

@ricaun do you have examples of such files? I'd love to take a look at them. @dosymep Hmm, I did have a look inside your sample.bim file and you might be right about the cause, have you looked at GetPoints as Luiz suggested? I'm not sure if it will change the vertices order thought. The issues I've found in a sample file are not even related to the vertices order, so even after I fixed them manually - triangles still display uncorrect :)