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!

VisualBasic .NET question

Status
Not open for further replies.

aszepesi

Mechanical
May 26, 2010
81
Dear All,
What kind of vb routine could I use to ask What is the highlighted NXObject?
 
Replies continue below

Recommended for you

1. GET ALL PRE-SELECTED OBJECTS

Dim num_selected As Integer = sel.GetNumSelectedObjects()

2. PUT THOSE OBJECTS IN AN ARRAY

Dim objArray(-1) As NXObject
For inx = 0 To num_selected - 1
ReDim Preserve objArray(inx)
objArray(inx) = sel.GetSelectedObject(inx)
Next
 
daluigi,
Thanks a lot.
And how could I remove this preselected object from the selection list.
I try the theUI.SelectionManager.RemoveFromSelectionList() function. But I can't add any value to the selectionhandle.
 
1. REMOVE OBJECT FROM THE LIST

Redim objArray(-1)

2. DE-SELECT THE OBJECTS ON SCREEN

Dim partCleanup1 As PartCleanup

partCleanup1 = s.NewPartCleanup()
partCleanup1.TurnOffHighlighting = True
partCleanup1.DoCleanup()
partCleanup1.Dispose()
 
Thanks,very thanks.
Your method works on the graphics area, it is very good.
But the component remains selected in the assembly navigator tree.

I tried the Part cleanup utility and I found that it can remove the selection from the component in the ANT, too.
But when I recorded the part cleanup utility and rerun the journal it doesn't work in the ANT. The component remained seletected.
what could I do?
 
Hi All,
is there any vb.net macro available to select
the components of same type(eg ejector pins, tap holes etc),
or is there a way to write in either Grip/KF.

about an year ago we switched to NX in our design dept
and we are experiencing some issues with the models sent to
shop floor like missing holes etc.

Regards
Girish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor