hi guys I wanted to ask how can I place a family on a model curve with a specific distance in C# (like the photo above ) I have done before using Dynamo , but my company thinks that it would be better to place them via C#. I just need some help because I have only started using C# two month ago.
I would love to hear how it is done, or if I can get the method to place families, or load them according to the shapes above.
Thanks
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Well, placing the instances is not a problem:
Determining equidistant points along a straight line is trivial.
The more complex problem of determining equidistant points along a curve is harder and has been discussed here many times. Here are some hits searching for 'equidistant':
Some of those have the exact same goal as you describe.
So, searching can help.
Hmm. That question is answered quite a (large) number of times by the articles in The Building Coder topic group on family instance placement that I pointed out in my previous answer above:
https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25.2
For an even shorter answer: NewFamilyInstance Method:
https://www.revitapidocs.com/2023/451ee414-cea0-e9bd-227b-c73bc93507dd.htm
Can't find what you're looking for? Ask the community or share your knowledge.