Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

line based strip footing problems with the API

1 REPLY 1
Reply
Message 1 of 2
gary.easom
336 Views, 1 Reply

line based strip footing problems with the API

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

1 REPLY 1
Message 2 of 2
gopinath.taget
in reply to: 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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community