Hey again,
I'm still on the topic and just wanted to post my progress:
I managed to create a new family via GUI that is based on the template "Metric Generic Model face based.rft" that looks close to what I want to create with the API. I then inserted it (also via GUI) into the Revit Architecture Sample Project and now try to find out which elements are intersecting. While that is obvious in the 3D-view, it's again not so easy to get with the API. I tried this and the results were as expected, but since I don't need the intersection with the bounding box but with the geometry that was not useful for me. I then found this and copy-pasted from the Revit API help file to use the "ElementIntersectsElementFilter" and the "ElementIntersectsSolidFilter" classes. Unfortunately the results aren't as expected and now I think about "creating a solid from scratch using the routines in GeometryCreationUtilities" like the help file suggests.
I would still appreciate any help since I'm really not very experienced with the Revit API and expect that there has to be an easier way to achieve all this!?
Regards
I'm still on the topic and just wanted to post my progress:
I managed to create a new family via GUI that is based on the template "Metric Generic Model face based.rft" that looks close to what I want to create with the API. I then inserted it (also via GUI) into the Revit Architecture Sample Project and now try to find out which elements are intersecting. While that is obvious in the 3D-view, it's again not so easy to get with the API. I tried this and the results were as expected, but since I don't need the intersection with the bounding box but with the geometry that was not useful for me. I then found this and copy-pasted from the Revit API help file to use the "ElementIntersectsElementFilter" and the "ElementIntersectsSolidFilter" classes. Unfortunately the results aren't as expected and now I think about "creating a solid from scratch using the routines in GeometryCreationUtilities" like the help file suggests.
I would still appreciate any help since I'm really not very experienced with the Revit API and expect that there has to be an easier way to achieve all this!?
Regards