×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NXOpen application to move a set of points on a layer

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.

RE: NXOpen application to move a set of points on a layer

(OP)
Thnks Cowski...it worked

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources