Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
Apr 13, 2015
Messages
31
Location
IN
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.
 
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

Back
Top