Host family property for some reason null

Host family property for some reason null

Anonymous
Not applicable
614 Views
2 Replies
Message 1 of 3

Host family property for some reason null

Anonymous
Not applicable

after creating a family on the face of the wall, the host family property for some reason null.

FamilyInstance instance = doc.Create.NewFamilyInstance(face, location, refDir, famsym);

why this could happen and what can be done about it?
I need to place the family on the edge of the wall. Using the method described above, I place the family, but it becomes the upper hand. In order for it to become as it should, I try to rotate it. But I can not find the membership of the family wall.

0 Likes
Accepted solutions (1)
615 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear vadim,

 

Are you saying that you perform the following steps with the following results?

 

  • Place family instance on face of wall using NewFamilyInstance(face, location, refDir, famsym); Host property points to wall.
  • Rotate the instance 180 degrees using the rotate method; Host property becomes null.

 

http://www.revitapidocs.com/2018.1/634dc711-7d00-a176-9c61-c53c27c89849.htm

 

Please provide a minimal reproducible case, e.g., a model containing just the wall and the family instance, rotated and unrotated, and a macro showing the code to create that situation:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Then the development team can take a look and see what is going wrong, if anything.

 

Thank you!

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

I work with a big model. These are several rooms. I can not load the model in which the room is located, because there are 70mb downloads on this forum. And my model is two Vail for 58 and 120 mb

0 Likes