Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple(extra) Instances of family in the view

2 REPLIES 2
Reply
Message 1 of 3
MustaeenUrRehmann.Qazi
300 Views, 2 Replies

Multiple(extra) Instances of family in the view

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.

 

Labels (1)
2 REPLIES 2
Message 2 of 3

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
Message 3 of 3

Thanks Jeremy I have updated my Issue report

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report