Revitapi geometry got empty list

it works! :slight_smile:
I am still studying your code to understand more :slight_smile:
what did you do?

u r trying to convert the solid ToProtoType()
if fail, then try to find the faces, and form a solid by all the faces
if fail, then try to find the edges from faces? am I correct? and then form faces by those edges, and then form solid from those faces. (edge to face, face to solid)

thank you so much :slight_smile:

P.S. revitapi is so complicated, too many classes, methods…

but for some reason it has warning on some beams :frowning:

hello :slight_smile:
I got this error on one of the beam :frowning:

yes exactly

I’m not sure that I have a solution for this…
try to change the geometry scale or use the @chuongmep 's solution
image

solved geometry scale

I would use @c.poupin’s or @chuongmep’s code! My attempt was very amateur :smiley:

2 Likes

I tried @chuongmep’s code, it works !! :slight_smile:
thank you :slight_smile:

1 Like

I changed the setting to large, now everything works like a charm :slight_smile:
thank you so much!!!

Hello guys,
I was trying to convert my model element exported from inventor to solid using the last python script that you used before, but it does not work for my model.

Can I get some help?

Catenary Mast.rvt (6.0 MB)
intersect element.dyn (16.2 KB)

please try to use chuongpqvn’s script

1 Like

I used for my model but it doesn’t work unfortunately

3 Likes

hello @newshunhk did it work for you?
could you send me the last script that you use it ?

hi you can use the code by chuongpqvn in this link:
https://github.com/DynamoDS/DynamoRevit/issues/2806

1 Like

Please notice that you need to scale up 1000 times the geometry to get the correct scale (metric), otherwise it is not in correct location

1 Like