Hi everybody!
I am trying to get the CUT_EDGE references of a given wall using the API. At the moment I can get part of the references based on the Wall geometry. I first go to the Solids and for each edge of the solid I check if the Reference is of type CUT_EDGE. This works but does not get all the options (I see more when generating a dimension line manually in the UI of Revit).
For example I have the wall seen in the image with the dimension that is attached to the CUT_EDGE references:
3aecdde0-f1aa-42b2-a208-f740e7a17720-003f7f7f:8:CUT_EDGE/0/1 and 3aecdde0-f1aa-42b2-a208-f740e7a17720-003f7f7f:8:CUT_EDGE/1/1. But when I run over all the edges of the wall I only get the following options (see image attached).
I played already with the visibility and detail options and nothing helps.
Did you test using the IncludeNonVisibleObjects property?
https://www.revitapidocs.com/2024/0d277b80-d5e5-1151-d413-b0899da0976f.htm
I can imagine that a CUT_EDGE reference is generated dynamically by a cut, so you cannot retrieve it from any existing BIM element geometry. It is the result of a cut between more than one element, and no single element or element geometry can provide that.
Brilliant! Thank you very much for your research. It will be a welcome addition to The Building Coder collection of stable representation magic voodoo information:
Edited our conversation and added to the blog:
Can't find what you're looking for? Ask the community or share your knowledge.