Message 1 of 2

Not applicable
11-01-2015
11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I read an article ( Text File Driven Automatic Placement of Family Instances ) from Jeremy Tammik's blog
For Know , I know the way to create instances by a text file contains XYZ coordinates , then I try to rotate the instances at the same time .
But it seems to be not successful . Here's the picture of my consequence.
As you see , it create several times by different angles...
But what I really want is like the picture below that every instance has different angle.
And here's my key code(which came out the unsuccessful picture).
foreach (XYZ p in Points) { foreach( double d in Degree) { familyInstance = creation_doc.NewFamilyInstance(p, Type, st); XYZ p2 = new XYZ(p.X, p.Y, p.Z + 10); Line axis = Line.CreateBound(p, p2); ElementTransformUtils.RotateElement(doc, familyInstance.Id, axis, d); } }
I don't know how to correct it .
Please do help me , thank you .
Solved! Go to Solution.