Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Apr 13, 2015
31
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.
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor