Hi all
I have a very odd situation, which i never faced before.
I am working on creating instances of a construction related custom family using the Revit API. The Problem is that, In my code every thing runs fine, the distance between each consecutive element is constant and there are specific number of elements on each reference Line, however in the revit project view extra elements(more than the code generates) are created on the reference line which kindof merge into eachother. For reference my revit project is attached. Although the whole code is more than 1000 lines long but I have attached a screen shot of the code snippet that creates the Family instances. In the debugging mode i have checked the number of elements created as well as the positions of the each element which look fine. But the problem occurs only in the project. Furthermore as one can see in the revit project the Elements on the DetailLine with Line style name N1 are fine, the problem of merging elements occurs on the DetailLine W1 and N2.
In the code, the list "positions" is a list of Tuple whose first Item is the position vector of each element and second Item is the normal vector which is only needed to rotate the elements and can be null.
Hard to say anything based on the scant information you provide. Can you share the relevant code snippet, cleaned up and minimised? Thank you.
Can't find what you're looking for? Ask the community or share your knowledge.