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: 

Family Instance Reference to reference planes and reference lines

1 REPLY 1
Reply
Message 1 of 2
Anonymous
604 Views, 1 Reply

Family Instance Reference to reference planes and reference lines

Hi,

 

just installed the new pre release for Revit and there is ONE change in the API. One. But one I was waiting for a long time to happen.

2-21-2017 4-11-06 PM.png

 

 

 

 

 

 

 

 

 

 

 

So I had to find out if that actually works and it does. If you added a family instance to your current document you can get a reference to the family and create a dimension or alignment. Very nice. Thanks guys.

 

IList<Reference> rr = f.GetReferences(FamilyInstanceReferenceType.WeakReference);
Dimension d1 = famdoc.FamilyCreate.NewAlignment(v, rr[index], p.GetReference());

 

regards

Christian

 

1 REPLY 1
Message 2 of 2
kelau1993
in reply to: Anonymous

What is the pre release? Is that for 2018? Do you have a link to where you took that screenshot?

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