Hello
I have a problem with calculate area surface. I gave these two objects intersection and received the line. I want from these lines to calculate the area of intersection. Can you help me?
Join your curves with PolyCurve.ByJoinedCurves then create the surface with Surface.ByPatch. You can get the surface area of any surface with Surface.Area.
@D.JohnWick Seems like youâre intersecting two polysurfaces.
Instead, convert one of the two objects to a solid (using Solid.ByJoinedSurfaces)
The result of the intersection between a solid and a polysurface objects would most likely be a surface, the area of which you should be able to obtain.
It works as I expected. Thank you very much.
It works as I expected. Thank you very much.
Hi @Vikram_Subbaiah @Nick_Boyts
Have any way to remove the color of this value? I want to filter these surface item but still keep index correspand these objects are intersected. Sorry for my english.
@D.JohnWick Wouldnât serve any real purpose, but if you donât like the yellow you could do something like thisâŚ
Hi @jacob.small, i know you who is a professionall dynamo. Can you help me this issue? I really need to resovle it
Not a âprofessionalâ in comparison to @Vikram_Subbaiah. I just tinker with the stuff he and others do, just have a bit more experience doing that than most.
Also I am not sure I understand the issue. Everything is working as I would expect. If you donât want to return ânullâ for items with no surface area what would you like to return?
It is error. I do not know where I got confused
To fix that code block remove the â.Areaâ so it reads
List.Clean(srf,true);
You already have the areas in the surface.area node - pulling the values a second time is causing the issue.
Hi @jacob.small I still can not do it.
Odd⌠try the list.clean node instead. First input is your list second is a âtrueâ boolean.
Toggle the Boolean to true. Itâs false at the moment.
I want to surface.area no yellow color.
Try this âŚ
DSCore.List.Clean(srf.Area,true);
Hi @Vikram_Subbaiah . I tried but it isnât my expected.
Thanks for your help
Generate a sample DYN which reproduces the surfaces and areas for me and Iâll try and squeeze something in later tonight (~9pm est) if I can. To be clear I donât want to have to work with the revit file or getting elements from a revit file. Rebuild a similar set of data using native dynamo functions.
Sorry.I do not know how to create a native dynamo function.Excuse me, Could you to work with revit file? Link below:
Revit file :https://drive.google.com/open?id=0B3sqW3OBMGnwQ1dEd19FY2o2b3M
Dynamo file : Test.JacobSmall.dyn (11.9 KB)
Sorry for the inconvenience.