Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Faces of cutter Family ?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Charles.Piro
411 Views, 4 Replies

Faces of cutter Family ?

Hi,

 

I have create a cutter family and place in beam :

imgVoidInBeam.png

Now, I want get to the faces of this element. But when I try, I don't found...

I explore with Revit Lookup and the result is same...

 

imgLookupElement.png

 

How find the faces of a cutter family ?

 

thanks for your help !

 

Smiley Wink



PIRO Charles
Developer

PIRO CIE
Linkedin


4 REPLIES 4
Message 2 of 5
jeremytammik
in reply to: Charles.Piro

Dear Charles,

 

Thank you for your interesting query.

 

I assume you wish to retrieve the faces of the wall that delimit the whole created by the cutter family instance?

 

This is not completely trivial, I'm afraid.

 

I can think of two ways:

 

1. Grab the entire solid geometry of the wall with the hole in it. Iterate all the faces and store them. Temporarily remove the hole from the model. Grab the solid and iterate and store its faces again. Determine the difference between the two lists of faces.

 

2. Grab the entire solid geometry of the wall with the hole in it. Determine all the profile curves of all its vertical surfaces (assuming your wall is vertical). One each vertical face, determine all the inner loops. For each inner loop, determine all the attached faces. All of those that penetrate the wall are the ones you are after.

 

I hope this helps.

 

I am sure many other approaches are also possible.

 

Please do let us know how you end up solving this.

 

Thank you!

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 5
Charles.Piro
in reply to: jeremytammik

Hi Jeremy,

 

thanks for your answer. I have test your ways but it's not really the result that I want !!
For explain my target, I want insert another family in the face of my cutter family !!

 

I think, I must search another way with the position of family instance

 

If you have another idea !!

 

thanks

 

Smiley Wink



PIRO Charles
Developer

PIRO CIE
Linkedin


Message 4 of 5
jeremytammik
in reply to: Charles.Piro

Determine a point in the middle of the hole, e.g., the cutter family instance insertion point.

 

Shoot a ray from it through the wall, for instance, along a horizontal ray parallel and vertically above the wall location line.

 

Determine the intersected face.

 

Have fun!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 5
Charles.Piro
in reply to: jeremytammik

Hi Jeremy,

 

it's good !!

 

Thank you very much.

 

Smiley Wink



PIRO Charles
Developer

PIRO CIE
Linkedin


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report