Brep has null reference

Brep has null reference

cervellione
Participant Participant
457 Views
2 Replies
Message 1 of 3

Brep has null reference

cervellione
Participant
Participant

when using brepbuilding i can build a valid brep and access the face, but let's say for each DB.Face f in the brep f.Reference is always null. any ideas on how to obtain a valid reference. i am trying to use it to create a facewall

0 Likes
458 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

I believe the reference can only be determined by Revit once the face belongs to a valid database element.

 

I do not believe you can get a reference for a face that you have built yourself.

 

The purpose of the reference is to provide a valid persistent tag for a geometric sub-element of a database resident BIM element.

 



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

0 Likes
Message 3 of 3

Anonymous
Not applicable

thanks for the reply. 

 

I know dynamo can do it and i am going through the source to figure out how. there is a wall by face component that accepts a surface, but the surface is just a dynamo surface yet is able to generate a proper reference to pass the facewall method. perhaps there is a better way to make a wall by face other than the facewall method? 

0 Likes