Get reference from familyinstance and create line

Get reference from familyinstance and create line

sonicer
Collaborator Collaborator
713 Views
1 Reply
Message 1 of 2

Get reference from familyinstance and create line

sonicer
Collaborator
Collaborator

Get Reference from familyinstance and create on this reference detail line.

 

I can only this

Reference ref= q.GetReferenceByName("Ext");

 

 

thx.

 

0 Likes
714 Views
1 Reply
Reply (1)
Message 2 of 2

sonicer
Collaborator
Collaborator

can't still align line with family referenceplace

Reference refre = q.GetReferenceByName("Ext");
                        
                        using (Transaction tx = new Transaction(doc, "11test"))
                        {                            
                            tx.Start();
                                Line eew = Line.CreateBound(profile00, profile01);
                                DetailLine ee = doc.Create.NewDetailCurve(vie, eew) as DetailLine;
                                Curve geo = ee.GeometryCurve;
                                Reference refgeo = geo.Reference;

                                Dimension aligned = doc.FamilyCreate.NewAlignment(vie, refgeo, refre);

                            tx.Commit();
                        }

make still error

 

Need align line(detail) with reference in familyinstance.

0 Likes