olegog
olegog

Reputation: 121

REVIT API. Can I set geometry from DirectShape for inserted FamilyInstance?

I have project document that has DirectShape element. I create new Family with 1 FamilySymbol. FamilySymbol is created without geometry. Then I loaded new Family and inserted NewFamilyInstance. And I want to set Geometry, but geometry got from DirectShape. I can't find way to do it. Is there way to do it ?

Upvotes: 0

Views: 1573

Answers (1)

Jeremy Tammik
Jeremy Tammik

Reputation: 8294

A family instance is one Revit database element, represented by a FamilyInstance object. A direct shape is another Revit database element, represented by a DirectShape object. Normally, direct shapes are used to completely avoid the need (and overhead) to define a family and insert a family instance of it. If you insist on using a family instance, you can also create the direct shape element inside the family definition instead of placing it in the project.

Upvotes: 1

Related Questions