Hello Guys,
Really frustrated here as it is one of the most silent place ever.
Though i m still posting a message 😞
Do u have any idea why below code not working...
ElementTransformUtils.MoveElement(Doc, fiMod.Id, movPos);
Regards,
-Nitin.
Solved! Go to Solution.
Solved by SinghManish. Go to Solution.
Dear nitin,
I think this code may help you. because this problem resolved by me using following code.
Let Family instance which one you want to move is FInst;
1st : Get FamilyInstance Location point
Lp=FamilyInstance Location Point.
You want to move at new Point that is newPosition;
after that do it like.
XYZ newposition=new XYZ(1,1,1);
XYZ oldPosition=Lp;
XYZ MovePosition=null;
MovePosition= newposition- oldPosition
ElementTransformUtils.MoveElement(Doc, Elemnetid, MovePosition)
i hope this will work fine.