×
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

RedisplayObject() not working

RedisplayObject() not working

RedisplayObject() not working

(OP)
I am trying to use RedisplayObject() method after setting the layers for NX7.5. Although I am able to build my NXOpen C++ application but layers are not getting updated in the view.

Can someone tell me the fix. Or can someone share the source code for RedisplayObject() method.

RE: RedisplayObject() not working

Are you working with a modeling or drafting view? What type of object are you working with, and what did you do to it that you need to call .RedisplayObject?

www.nxjournaling.com

RE: RedisplayObject() not working

(OP)
I am working with modeling. Trying to move some features to layers using SETLAYER() method. After using setlayer wanna use RedisplayObject() so that the changes get reflected in the view.

RE: RedisplayObject() not working

Did you log the feature for update then perform an update?

VB code snippet taken from:
thread561-363348: NXopen - How to move complete DatumCsys to new Layer

CODE

For Each temp As DisplayableObject In DCObj
    temp.Layer = newLayer
    temp.RedisplayObject()
Next
DBuilder.Destroy()

Dim updateMark As Session.UndoMarkId
updateMark = theSession.SetUndoMark(Session.MarkVisibility.Invisible, "update")
Try
    theSession.UpdateManager.LogForUpdate(myFeature)
    theSession.UpdateManager.DoUpdate(updateMark)

Catch ex As Exception

End Try 

www.nxjournaling.com

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