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: 

Insert a mass family instance

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
467 Views, 6 Replies

Insert a mass family instance

Anonymous
Not applicable
Hi,

I'm trying to insert in a revit's project a mass family instance.

I'm usingg the "NewFamilyInstance" method, after loading the family desired, but nothing happens in the document. It's needed to be bounded? Like I have to do with linear entities?

Thanks in advance,

Natxo
0 Likes

Insert a mass family instance

Hi,

I'm trying to insert in a revit's project a mass family instance.

I'm usingg the "NewFamilyInstance" method, after loading the family desired, but nothing happens in the document. It's needed to be bounded? Like I have to do with linear entities?

Thanks in advance,

Natxo
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Did you check in the 3-D views if the family instance showed up. Sometimes it doesnt in plan view.
0 Likes

Did you check in the 3-D views if the family instance showed up. Sometimes it doesnt in plan view.
Message 3 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Yes, checked!
0 Likes

Yes, checked!
Message 4 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Yes, I've checked and nothing appears.
0 Likes

Yes, I've checked and nothing appears.
Message 5 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
You are right about there. Once you create a family family instance(like framing) you have to "bound" it with a line. Sample this:

Dim beam As Elements.FamilyInstance = m_revitObj.ActiveDocument.Create.NewFamilyInstance(pStart, symbol, baseLevel, strType)

Dim beamCurve As LocationCurve = beam.Location '

If Not (beamCurve Is Nothing) Then
Dim line As Line = m_revitObj.Create.NewLineBound(pStart, pEnd)
beamCurve.Curve = line
End If
0 Likes

You are right about there. Once you create a family family instance(like framing) you have to "bound" it with a line. Sample this:

Dim beam As Elements.FamilyInstance = m_revitObj.ActiveDocument.Create.NewFamilyInstance(pStart, symbol, baseLevel, strType)

Dim beamCurve As LocationCurve = beam.Location '

If Not (beamCurve Is Nothing) Then
Dim line As Line = m_revitObj.Create.NewLineBound(pStart, pEnd)
beamCurve.Curve = line
End If
Message 6 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Yes, I know that the familyinstances must be bounded, but I don't know how to deal with a mass family.

I mean, it's not linear, the Location property return me a LocationPoint, not a LocationCurve.

Moreover, there's no method like "NewLineBound" that works with points, or I've been unable to find it.

Thanks in advance.
0 Likes

Yes, I know that the familyinstances must be bounded, but I don't know how to deal with a mass family.

I mean, it's not linear, the Location property return me a LocationPoint, not a LocationCurve.

Moreover, there's no method like "NewLineBound" that works with points, or I've been unable to find it.

Thanks in advance.
Message 7 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Hi,

I'm terribly stupid, and I must apologize, it was only to activate the "view mass" button!!!

Thanks to all, and sorry again.
0 Likes

Hi,

I'm terribly stupid, and I must apologize, it was only to activate the "view mass" button!!!

Thanks to all, and sorry again.

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

Post to forums  

Autodesk Design & Make Report