Multiple(extra) Instances of family in the view

Multiple(extra) Instances of family in the view

MustaeenUrRehmann.Qazi
Contributor Contributor
561 Views
2 Replies
Message 1 of 3

Multiple(extra) Instances of family in the view

MustaeenUrRehmann.Qazi
Contributor
Contributor

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.

 

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

jeremy_tammik
Alumni
Alumni

Hard to say anything based on the scant information you provide. Can you share the relevant code snippet, cleaned up and minimised? Thank you.

  

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

MustaeenUrRehmann.Qazi
Contributor
Contributor
Thanks Jeremy I have updated my Issue report
0 Likes