Hi,
Is there a way to change the length of the wall using the ‘Wall Ends’?
given the length parameter is readonly. one way to accomplish this is to get the locationCurve of the wall first, then make a new curve with the locationCurve u’ve just got and finally, assign it to the wall. but in the graph below, essentially, im moving the wall, so there’re other ways if translation is ur goal.
Hi,
Currently the script doesn’t trim the wall back. I’m not sure what I’m doing wrong.
Wall Split.dyn (70.6 KB)
Hi,
You need to add another filterByboolMask with the same mask and the elements for the List
the in and out outputs of this one to Element.SetLocation as a list.
Element and curve
Sincerely,
christian.stan
Hi @_INN and an alternative way if you wanna trim

Hi @christian.stan is the screenshot below correct?
Hi,
Another way
def decwalloff(wal,bol,offset)
{
_curve=Revit.Elements.Element.GetLocation(wal);
_vecdir=_curve.Direction.Normalized();
pb=_curve.StartPoint;
pe=_curve.EndPoint;
dec=bol==true?offset:-offset;
_pb=Point.Add(pb,Vector.Scale(_vecdir,dec));
_pe=Point.Add(pe,Vector.Scale(_vecdir.Reverse(),dec));
return Line.ByStartPointEndPoint(_pb,_pe);
};
True for enlarge wall
False for reduce wall
Cordially
Christian.stan






