I am having trouble with PolyCurve By Profile Family Type. I have a profile loaded into my project, I can select it with the Family Types node, but when I plug it into the PolyCurve By Profile Family Type node I get null values. The profile itself is a simple circle. Any suggestions would be greatly appreciated.
Could you check if other nodes from archi-lab works. If it works then double click “Polycurve.ProfileByFamilyType” copy the python node and paste it in your workflow. Then show what does the error says.
Exactly the same here - the node works perfectly in 2015 but fails in 2016 - apparently there had been a change in the API. Does anybody know how to amend this?
@taurerm is right the node works in 2015 but fails in revit 2016 onwards thanks to @Einar_Raknes for pointing it out. Try the below Python script it should work for you. I tested it in Revit 2017 also it looks good.
Hi all - thanks a lot for the effort - I’ll try to get that running (on the road and busy…) - but so I tryed to retype the code and and it stll does not want to work for me…
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
for i in sketch
cArray = list(i.profile)
cArray[:] = [[Revit.GeometryConversion.RevitToProtoCurve.ToProtoType (y, True ) for y in x] for x in cArray]
OUT = cArray
Oh man, I wish I could invite others to make edits to my packages. It would be so much easier. I get a few of these every now and then, and usually don’t update until I am actually in need of it. That’s a sad thing to say, but that’s how this usually works with my other commitments and limited time available.
i know this is an old topic, but still have a problem… when your profile has multiple types or is parametric then it won’t take the correct profile…it just looks into the family what it you see when you open the family is what it takes. So setting types or adjusting a parameter and then want to extract the lines won’t work
i am facing same issue, while changing the type parameter of profile family and based on that want to extract the polycurve, but facing an issue like initial whatever value was there it got same thing extracted.
is there any solution for this? @Kulkul and @Konrad_K_Sobon