
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to shift/extend the End and Start point of a curve.
I get that curve from the wall.Location command.
In fact, I am currently transferring a program made on dynamo to External command with API Revit to integrate it in a plugin.
So, here's the question : Is there a function that allows me to do the equivalent of the Curve.ExtendStart or Curve.ExtendEnd node with the revit API in C #? If not, can you help me find a way to do something similar?
I want an offset on my End/Start point equal to half the witdth of the wall from wich I get the curve.
So, here is what I did so far with my code (don't mind the french):
foreach(Wall wall1 in WallList)
{
Double Width = wall1.Width;
Double ExtendDistance = Width / 2;
TaskDialog.Show("Info", "La largeur du voile est : " + Width+" et la largeur divisé par deux est de : "+ExtendDistance);
LocationCurve locationCurve = wall1.Location as LocationCurve;
Curve wallCurve = locationCurve.Curve as Curve;
//Insert Code (Extend end/start point of curve)
}
My goal is to automatically place a stiffener at the end/start of each wall.
To do this, I need a point. I already know how to place and contrain a stiffener from a placement point.
My concern is how to find said placement point.
Can you help me please,
I'm french please excuse the mistakes and clumsiness.
Cheers, Samuel
Solved! Go to Solution.