Wednesday, 11 September 2013

Translation Vecotr in ElementTransformUtils.CopyElement Revit 2012

Translation Vecotr in ElementTransformUtils.CopyElement Revit 2012

i'm trying to make Instance of Selected object entered by the user in
Revit Api 2012 c#,I discovered that the third input to
ElementTransformUtils.CopyElement is the translation vector not the new
place so i'm trying to pick fixed point from the element selected then
substract the new place location from it and put the result as translation
vector. the problem is : i use pickobject.globalPoint to obtain point from
the selected object which changes every time i ran the code so the
Question : how to obtain the same point every time i select the Element
Entered by the user? Thanks In Advance

No comments:

Post a Comment