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!

RedisplayObject() not working

Status
Not open for further replies.

yadvdinesh

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

Recommended for you

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
 
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.
 
Did you log the feature for update then perform an update?

VB code snippet taken from:
thread561-363348

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
    [highlight #FCE94F]theSession.UpdateManager.LogForUpdate(myFeature)[/highlight]
    [highlight #FCE94F]theSession.UpdateManager.DoUpdate(updateMark)[/highlight]

Catch ex As Exception

End Try

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor