Paint a splitface with C# code

Paint a splitface with C# code

Anonymous
Not applicable
774 Views
3 Replies
Message 1 of 4

Paint a splitface with C# code

Anonymous
Not applicable
I want to read from a file that had a wall element id and a way to indentify a particular spliface element and paint it with a material. But, I don't know how to identify a splitface element since the API treats it as a face with no element id.
0 Likes
Accepted solutions (2)
775 Views
3 Replies
Replies (3)
Message 2 of 4

Aaron.Lu
Autodesk
Autodesk
Accepted solution
There is no such API to identify a split face. I can only suggest using face's Origin, Area, Computed Normal to ID it. if there is still duplications, you will need to identify more properties..


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 4

Anonymous
Not applicable

 

hey aron, I'm trying to do that but came across some comlications. I'm currently using revit 2014 and don't have an origin method in the face api. I can't really use are because i'll have multiple splitfaces. I'm trying to use the computenormal but i'm not sure I understand the api. can you give me some sample code to use the compute normal method.

0 Likes
Message 4 of 4

Aaron.Lu
Autodesk
Autodesk
Accepted solution
Get computed normal example
PlanarFace face;
var origin = face.Origin;
var normal = face.ComputeNormal(new UV(origin.X, origin.Y));


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes