NXOpen application to move a set of points on a layer
NXOpen application to move a set of points on a layer
(OP)
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)")));
[b] 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.
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)")));
[b] 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.





RE: NXOpen application to move a set of points on a layer
https://docs.plm.automation.siemens.com/data_servi...
www.nxjournaling.com
RE: NXOpen application to move a set of points on a layer