mirrored repeating detail items

Anonymous

mirrored repeating detail items

Anonymous
Not applicable

I have an app the explodes detail components into filled regions and lines and I'm having some problems with repeating detail components (rpc). I can't tell when a rpc is mirrored. Using the Revit Lookup tool to snoop a rpc, I can see the location curve (a line element) has 2 XYZ classes that designate the origin and direction of the line the repeating components should follow. If the rpc is mirrored the value of the direction XYZ class changes but I can't understand how the changes infer the mirror direction.

0 Likes
Reply
Accepted solutions (1)
390 Views
1 Reply
Reply (1)

TripleM-Dev.net
Advisor
Advisor
Accepted solution

Hi,

 

Use GetGeometry and include geometry not set as visible (see in Revit Lookup).

It seems to always return 5 lines (locationline and the 4 boundaries?).

the 3th and 4th are perpendicular to the locationline, and they give a different direction for a mirrored repeating element.

 

Determine the transform needed to get the vector vertical, apply same transform to the 3th line it's X component will be positive for drawn element and negative for mirrored ones

 

Other approach could be to determine the direction between 1e and 3e line (clockwise/counterclockwise), maybe easier?

 

- Michel

0 Likes