Revit API

Reply
Distinguished Contributor
136 Posts
0 Kudos
Registered: ‎09-29-2008
Post 1 of 3

Insert a planar based family instance

183 Views, 2 Replies
11-03-2009 12:21 PM
Hello,

I have an object (Simpson Strong-Tie CS22 strap Structural Connection) and I am trying to insert it using any NewFamilyInstance method. So far nothing works... I snooped the object after manually inserting it and found that it is a curve (2 points in world coordinates), and has a working plane (sketch plane parameter) set by string to the object you first selected (in my case a wooden stud). That tells me that it should insert using the NewFamilyInstance(Face, Line, FamilySymbol) method. But when I use this, even after having gotten the proper Geometry.PlanarFace object from the stud's geometery, Revit throws an internal error (of an unknown description). Has anybody used this method of inserting a family instance, and can they help me figure it out why I am getting this error.

Thanks,

jvj
Member
3 Posts
0 Kudos
Registered: ‎10-01-2012
Post 2 of 3

Re: Insert a planar based family instance

10-01-2012 11:36 AM in reply to: JamieVJohnson

I'm running into a similar problem with the adaptive generic component. Has there been a solution or a reason as to why this is occuring?

 

Thanks,

Employee
185 Posts
36 Kudos
Registered: ‎08-16-2007
Post 3 of 3

Re: Insert a planar based family instance

10-05-2012 05:15 PM in reply to: Crashnorun

Hi

 

I will be happy to investigate further if you can provide a minimal buildable VS project and a RVT file with the loaded family (whose instance you wish to create) and attach it to this post. Please ensuire that the VS project contains minimal code and does not contain any information that might be considered confidential.

 

thanks

 



Saikat Bhattacharya

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!