×
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

Removing selection stickness from cam operation

Removing selection stickness from cam operation

Removing selection stickness from cam operation

(OP)
Hello! Writing a short journal that would save screenshots for each tool movement in CAM operation. My main problem is that I don't know how to remove selection sickness from "NXOpen.CAM.CAMObject". here is the code below. Wanted this to work for any process, not just cavity milling as below. Thanks in advance.


CODE --> vb

Option Strict Off
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports NXOpen
Imports NXOpen.UF

Module NXJournal
Sub Main (ByVal args() As String) 

Dim theSession As NXOpen.Session = NXOpen.Session.GetSession()
Dim workPart As NXOpen.Part = theSession.Parts.Work
Dim displayPart As NXOpen.Part = theSession.Parts.Display


Dim kinematicConfigurator1 As NXOpen.SIM.KinematicConfigurator
kinematicConfigurator1 = workPart.KinematicConfigurator

Dim objects1(0) As NXOpen.CAM.CAMObject
Dim cavityMilling1 As NXOpen.CAM.CavityMilling = CType(workPart.CAMSetup.CAMOperationCollection.FindObject("CORNER_ROUGH"), NXOpen.CAM.CavityMilling)

objects1(0) = nCGroup1
Dim isvControlPanelBuilder1 As NXOpen.SIM.IsvControlPanelBuilder
isvControlPanelBuilder1 = kinematicConfigurator1.CreateIsvControlPanelBuilder(NXOpen.SIM.IsvControlPanelBuilder.VisualizationType.ToolPathSimulation, objects1)
isvControlPanelBuilder1.SetSingleStep(NXOpen.SIM.IsvControlPanelBuilder.SingleStepType.Block)
isvControlPanelBuilder1.SetSpeed(10)


Dim simulationOptionsBuilder1 As NXOpen.CAM.SimulationOptionsBuilder
simulationOptionsBuilder1 = isvControlPanelBuilder1.SimulationOptionsBuilder

Dim response1 As Integer
response1 = isvControlPanelBuilder1.SetShow3dMaterialRemoval(True)

isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0001.png")
isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0002.png")
isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0003.png")
isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0004.png")
isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0005.png")
isvControlPanelBuilder1.SingleStepForward()
        ExportScreenshot("C:\Users\capproj\Desktop\testfolder\NX_screenshot0006.png")
isvControlPanelBuilder1.SingleStepForward()
End Sub 

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