I had created a Tube through programming using C++ lang, Using two Non-Associative point & line, I am trying to move that non-associative object using MoveObject Feature of NX, But i am not able to do so, it is displaying that a fixed point will get created because the Point "Output Co-ordinate Reference" is set to "WCS" & then i had set it to "Absolute WorkPart" but still the results are same.
Do any have an idea how i can move a non-associative point or an alternate solution for it.
Thanks in advance.
I tried it with Edit->Transform , but it is making a copy of a point & not able move that non-associative point as well as Tube Feature is not getting Updated w.r.t to copied point.
I want to move that point with help MoveObject Feature as it's is requirement.
Do you know ,how can i handle the Refrence CSYS from not setting it to WCS as it is creating a fixed point.
Thanks in advance for your valuable time.
The code snippet below creates two non associative points and an associative line between them. I can move the points around and the line updates.
Point3d stPoint(10.0, 10.0, 0); Point3d endPoint(10.0, 100.0, 0); Point *point1 = workPart->Points()->CreatePoint(stPoint); Point *point2 = workPart->Points()->CreatePoint(endPoint); Line *line1 = workPart->Curves()->CreateLine(point1, point2); point1->SetVisibility(SmartObject::VisibilityOptionVisible); point2->SetVisibility(SmartObject::VisibilityOptionVisible); line1->SetVisibility(SmartObject::VisibilityOptionVisible);