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:ointFeature *pointFeature1(dynamic_cast<Features:ointFeature *>(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.
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:ointFeature *pointFeature1(dynamic_cast<Features:ointFeature *>(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.