Hello! I have problem to create facewall.
When I do
FaceWall.Create(document, t, WallLocationLine.CoreExterior, f.Reference)
then process of work continue, but never finish. I think it happened because my reference is incorrect.
I take reference from geometry
Dim op As New Options
op.ComputeReferences = True
op.IncludeNonVisibleObjects = True
Dim ge As GeometryElement = Instance.Geometry(op)
For Each sol In ge.ToList()
If sol.GetType Is GetType(Solid) Then
Dim s As Solid = sol
Dim f As Face = s.Faces(0)
In reference which I have (f.Reference ) GlobalPoints=nothing.
When I take reference in other way
Dim r as reference= uidoc.Selection.PickObject(Selection.ObjectType.Element)
GlobalPoints is not nothing and all work. How can I get reference with GlobalPoints<>nothing but without PickObject?