ChangeToReferenceLine() does not create normal reference lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create reference lines to use as a way to move elements inside a family. When I try the grips out in a project it moves the entire family instead of simply the element inside of the family.
The setup has pinned reference planes, also created with a script and parameters that control the offset. When I create the reference lines with the method below (from the linked post) it doesn't appear to create normal reference lines and I'm wondering if that may be causing some of my issues.
p = Plane.CreateByNormalAndOrigin(XYZ.BasisZ, XYZ(0, 0, 0))
sp = SketchPlane.Create(doc, p)
# Ref Line Symbol Vertical Center
llvc = Line.CreateBound(XYZ(0, 0, 0), XYZ(0, -0.583333, 0))
lineLabelVerticalCenter = doc.FamilyCreate.NewModelCurve(llvc, sp)
lineLabelVerticalCenter.ChangeToReferenceLine()
When I click on the reference line and compare it's properties it looks more like a model line. Notice that it doesn't have a work plane and it has the "Visibility" parameter which normal reference lines do not have.
This is a manually created reference line:
I've added two families to the post. Inside a project the script created family will move when the grips are dragged while the manually created one will stay in place and only the reference lines will move.