Hi,
I have created a structural foundation category (strip footing) family, based on the line based generic model template and set the appropriate width, depth and length parameters. I have also selected the work plane based flag for the family in the family editor.
I can place an instance of this family, in the project, with the UI with no problem and the line based, two point pick, behavior works fine.
Whenever I try and create a family instance via the API the family instance isn't placed as a line based family. The family isn't orientated correctly and there are no handles on the instance that allow me to grab and reposition the ends.
I noticed that the UI requests that the placement, either face or work plane based, is set in the project when placing the first instance of the family. (The default seems to be face based?). The option to set this does not seem possible via the API and may be the reason why the API placement does not work?
Has any one experienced this issue with line based foundation category footings and the API and are there any workarounds / solutions available?
Many thanks,
Gary Easom
Hello,
I will need to look at the family file and the code you use to dig deeper but I suspect you are not using the right NewFamilyInstance overload. These blog posts should help:
http://thebuildingcoder.typepad.com/blog/2010/10/place-detail-instance.html
http://thebuildingcoder.typepad.com/blog/2011/01/newfamilyinstance-overloads.html
http://thebuildingcoder.typepad.com/blog/2011/06/placing-a-line-based-detail-item-instance.html
Best Regards
Gopinath