Message 1 of 7
How to set/edit a FamilyInstances Geometry

Not applicable
09-19-2013
06:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am creating a Family Instance of a Pipe. I am able to successfully create the FamilyInstance but I am unable to set the Pipes geometric data. I would like to just set the start point and end point of the pipe but I dont know how?
Can you provide advice on how to set a FamilyInstances geometric data (ie, the vertices)?
Heres my code that creates the FamilyInstance and attempts to set the geometric data but as you can see I cant find the points/vertices?
FamilyInstance pipe = doc.Create.NewFamilyInstance(strt, pipeSymbol, StructuralType.NonStructural); // Set the pipes start vertex and end vertex foreach (GeometryObject geomObj in pipe.get_Geometry(null)) { // How do I find the first and last vertex??? GeometryInstance geomInst = geomObj as GeometryInstance; GeometryElement transformedGeomElem = geomInst.GetInstanceGeometry(geomInst.Transform); }