-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration issue: How to get Revit face? #1704
Comments
With properties of the face, do you mean revit related properties or general geometrical properties (area, perimeter...etc)?. As a normal surface you can get as usual the second group |
Revit related properties, unfortunately... |
I assume that you need more than the ones avaliables in Revit>Element>Query. (to be used after Select Model Element and before extracting the surface, obviously). I have never tried for faces so I can not tell about how they work. Maybe we need specific query methods for revit faces |
Have a look at the graph above. Element.Faces is listed under Revit.Element.Query but returns a DS.Surface - not very useful... ;-) |
I have seen it. I understand the problem, Select face is not consistent with other select revit elements methods. It returns directly a dynamo surface. Its practical, because it avoids the aditional step of extracting the geometry. but there is not revit face to query the revit properties. I was wondering if you can select the face via Select model element (for example a face in the conceptual mass enviroment) and query the revit properties (note: i just discover Element.ElementFaceReferences that is returning a "Revit.GeometryReference.ElementFaceReference" for every face of a wall for example. I haven't figure out yet how to query the revit properties of every face with it ) |
That might possibly work - no idea. |
Thank You for reporting! We know that with new implementation, selecting a Face in Revit will convert that in DS Surface in Dynamo. We are tracking this issue internally with issue ID MAGN-3641 |
Hi andreas, What kind of properties do you wish to extract from the face? I can provide Part of the idea of this implementation is to have a single unified If you can elucidate what particular properties you are looking for, I can Sorry if this is poorly written I wrote it on my cell. ;)
|
Peter,
And of course the different face classes in the Revit API have some unique properties, too (e.g. RevolvedFace.Radius). Plus it might be necessary to access the underlying form element. Or I might want to create a node that places a face-based family. All of this was easy as pie (or at least possible) in 0.6.3 ... |
Hi Andreas, It is possible to obtain the Revit geometry Reference from the ASM Surface I assume that you intend to call these kinds of methods from Python, as I Anyhow, the quick fix is to do this in your python code, where surface is ref = surface.Tags.LookupTag("RevitFaceReference"); Simply put, the ASM Surface is "tagged" with the Reference, so you can look Then, you can look up the Face in the document like this: face = document.InternalDocument.GetElement(ref). Where document is the what's returned from the node Document.Current. Just for record, here is where you can find the RevitNodes library, which https://github.com/DynamoDS/Dynamo/tree/master/src/Libraries/Revit/RevitNodes ~Peter On Wed, Jun 4, 2014 at 12:16 AM, Andreas Dieckmann <notifications@github.com
|
Hi Andy. |
@dronovdmitry - This code is being used in thre custom nodes in package Clockwork: RevitFaceReference.FromDynamoSurface, RevitFace.FromDynamoSurface & Element.FromDynamoSurface. |
Ok. I understand. But i try to set Paint method to geometry in dynamo and i cant do this..... Because dynamo node "Select face" break away geometry face from element and all his parameter.... such as Id... How can i take element ID from surface? http://joxi.ru/KAxVNV7fQVqYm8?d=1 |
Hi there,... some years later another question about this. I need to get the Revit Face because the U,V space of the Dynamo Faces are not correct. So I tried all the mentioned ways but none of them worked out. Do you have any suggestion for Dynamo 0.8? |
Using GetRevitType gives me a Mesh, maybe there is a way to get from the Mesh to a Revit Face? |
Prior to 0.7.x selecting a face would give me the Revit Face. Now I get a DS Surface. How do I get the Revit Face if I want to access its properties? Is there a node that I have overlooked? Another thing: Element.Faces is categorized under Revit in the node browser - if it doesn't get me a Revit element or Revit geometry, shouldn't it be categorized under Geometry?
The text was updated successfully, but these errors were encountered: