Can we set visibility of created curves on same line of code?
Is is possible to set the visibility of created curves on this same line of code ?
result = DesignCurve.Create(GetRootPart(),CurveSegment.Create(PointCurve.Create(point)),False).SetColor(None, Color.FromArgb(transparency, redColor,greenColor,blueColor))
Answers
-
Did you try result = DesignCurve.Create(GetRootPart(),CurveSegment.Create(PointCurve.Create(point)),True).SetColor(None, Color.FromArgb(transparency, redColor,greenColor,blueColor))
2 -
@Valérie Gelbgras I just tried and the curves remained hidden
6 -
To make sure it is not another parameter, Could you try with DesignCurve.Create(p1,CurveSegment.Create(PointCurve.Create(point)),True)
0 -
@Valérie Gelbgras Sorry this was my mistake your first proposal is actually working ! thankyou !
0 -
In the code below, I get the root part. Then from the root part, I get the first component. I create a point which is used to create a point curve itself used to create a trimmed curve. Finally the design curve is created. The visibility of the design curve is defined by the third argument.
rootPart = GetRootPart() component = rootPart.Components[0] point = Point.Create(1, 1, 1) pointCurve = PointCurve.Create(point) trimmedCurve = CurveSegment.Create(pointCurve) DesignCurve.Create(rootPart, trimmedCurve, True)
2