Rotate FamilySymbol on Face of Wall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, when i place my FamilySymbol on wall face is placed upside down, i'm using : FamilyInstance instance = doc.Create.NewFamilyInstance(face, location, refDir, famsym.First()); to rotate my wrong placed FamilySymbol i'm using: LocationPoint lp = item.Location as LocationPoint; XYZ ppt = new XYZ(lp.Point.X, lp.Point.Y, lp.Point.Z); Line axis = Line.CreateBound(ppt, new XYZ(ppt.X, ppt.Y, ppt.Z + 10)); ElementTransformUtils.RotateElement(doc, item.Id, axis, (Math.PI / 180) * -180); in this case my FamilySymbol placed correctly, but shifts. if i'm using: LocationPoint lp = item.Location as LocationPoint; XYZ ppt = new XYZ(lp.Point.X, lp.Point.Y, lp.Point.Z); Line axis = Line.CreateBound(new XYZ(ppt.X, ppt.Y, ppt.Z - 10), new XYZ(ppt.X, ppt.Y, ppt.Z + 10)); ElementTransformUtils.RotateElement(doc, item.Id, axis, (Math.PI / 180) * -180); there is an error about the inability to rotate What i'm doing wrong? Please help