Message 1 of 10
Alignment reference plane.

Not applicable
05-14-2013
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have an alignment problem. I want to align two reference planes in a family document. But I get this error:
"one of the conditions for the inputs was not satisfied. Consult the documentation for requirements for each argument."
doc : family document with several reference plane.
Extrait du code :
View pViewPlan = findElement(typeof(ViewPlan), "Niveau de réf.", doc) as View;
ReferencePlane refLeftdocFamily = findElement(typeof(ReferencePlane), "Gauche", doc) as ReferencePlane;
ReferencePlane refRightdocFamily= findElement(typeof(ReferencePlane), "Droite", doc) as ReferencePlane;
transaction = new Transaction(doc);
transaction.Start("Alignment");
doc.FamilyCreate.NewAlignment(pViewPlan, refLeftdocFamily.Reference, refRightdocFamily.Reference); "Here this line causes the error described above"
transaction.Commit();
Merci d'avance.
Bonne journée.