Some elements appear to be flipped during geometry conversion

Some elements appear to be flipped during geometry conversion

bramZ3H5T
Observer Observer
344 Views
2 Replies
Message 1 of 3

Some elements appear to be flipped during geometry conversion

bramZ3H5T
Observer
Observer

Hi I'm working on a geometry converter that exports the elements to our own proprietary file format (for further analysis). Some elements (FamilyInstance) appear to be flipped in the output.

I use GetTotalTransform() to get the elements' transformation matrix but apparently that's not enough. I also see that in that case the Mirrored and FacingFlipped properties are set. API docs says: Property to test whether the family instance is mirrored. (only one axis is flipped). But it's not specifying which axis.

How can I obtain the correct transformation? 

 

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

jeremy_tammik
Alumni
Alumni

I think I ran into such issues myself a long time ago, implementing geometry exporters before the advent of the custom exporter functionality. Don't remember how I handled it back then, though. The most reliable exporter that analyses such things is the ElementViewer included in the Revit SDK samples. You might want to check how that handles the flipped instances. Here is one quite extensive thread that discusses a number of aspects of handling flipped family instances; maybe that can be of use, or help throw some light:

  

https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

bramZ3H5T
Observer
Observer

Thank Jeremy, I will look into the examples!

0 Likes