Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NXOpen application to move a set of points on a layer

Status
Not open for further replies.

yadvdinesh

Aerospace
Joined
Apr 13, 2015
Messages
31
Location
IN
Hi,

I want to move all the points to a layer:
When I try to record a journal for moving a single point, I am getting the below shown journal:

Session::UndoMarkId markId1;
markId1 = theSession->SetUndoMark(Session::MarkVisibilityVisible, "Edit Object Display");

DisplayModification *displayModification1;
displayModification1 = theSession->DisplayManager()->NewDisplayModification();

displayModification1->SetApplyToAllFaces(false);

displayModification1->SetApplyToOwningParts(false);

displayModification1->SetNewLayer(25);

std::vector<DisplayableObject *> objects1(1);
Features::PointFeature *pointFeature1(dynamic_cast<Features::PointFeature *>(workPart->Features()->FindObject("POINT(11)")));
Point *point1(dynamic_cast<Point *>(pointFeature1->FindObject("POINT 1")));
objects1[0] = point1;
displayModification1->Apply(objects1);

delete displayModification1;

But "POINT 1" is specific to a point. I want to get this name using JournalIdentifier() method. But I dont know how to invoke this method for POINT1. Can any one help plz.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top