Using journal to select all
Using journal to select all
(OP)
thread561-272370: "Select All" Solids using a journal
I am trying to use the NX 7.5 to do a select all after applying a type filter
can anyone help explain how i would begin to proceed selecting everything on the screen thru code?
I am trying to use the NX 7.5 to do a select all after applying a type filter
can anyone help explain how i would begin to proceed selecting everything on the screen thru code?





RE: Using journal to select all
Here is a function taken from the GTAC solution center that might get you started:
CODE
www.nxjournaling.com
RE: Using journal to select all
For example
If D<2", then blank circle,
Elseif change color of circle to blue.
The problem is I usually have objects on different layers, around 1-100. This select all command is quite tedious for NX. Even when I do it through journal to see what code it refers to NX Open for samples of such code but I cannot find any.
RE: Using journal to select all
CODE
www.nxjournaling.com
RE: Using journal to select all
I do not know what the arguments are and I am doing something run in the process of executing it. Please look at this when you get a chance and let me know if you see anything. Thanks in advanced.
CODE --> vb
RE: Using journal to select all
CODE
For Each tempObj As DisplayableObject In visibleObjects 'test if object is an arc If TypeOf tempObj Is Arc Then tempArc = tempObj If tempArc.Radius < 1 Then 'do something with small arc Dim objects1(0) As DisplayableObject objects1(0) = temparc displayModification1.Apply(objects1) End If End If Next displayModification1.Dispose() End SubAlternately, you may get slightly better performance by creating a list of objects, adding the desired objects to the list in the for loop then applying the display modification to the entire list at once after the for loop.
www.nxjournaling.com
RE: Using journal to select all
I will try that, you wouldn't happen to have any sort of general list code that I could use to this would you?
RE: Using journal to select all
CODE
www.nxjournaling.com