×
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!

*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

Journal Add workpart to TaggedObejct

Journal Add workpart to TaggedObejct

Journal Add workpart to TaggedObejct

(OP)
Hello,

I writing small journal for export pdf, dxf, parasolid and step for each part in assembly.
I can select all parts in assembly, but I can't add main part (or workpart) to selection group.
I use standard function:

CODE --> vb

Function SelectComponents(ByVal prompt As String, ByRef selObj() as TaggedObject) As Selection.Response
	 
	Dim theUI as UI = UI.GetUI
	Dim title As String = "Select components"
	Dim includeFeatures As Boolean = False
	Dim keepHighlighted As Boolean = False
        Dim selAction As Selection.SelectionAction = Selection.SelectionAction.ClearAndEnableSpecific
	Dim scope As Selection.SelectionScope = Selection.SelectionScope.AnyInAssembly
	Dim selectionMask_array(1) As Selection.MaskTriple
	 
	With selectionMask_array(0)
		.Type = UFConstants.UF_component_type
		.Subtype = UFConstants.UF_all_subtype
	End With
		
	With selectionMask_array(1)
		.Type = UFConstants.UF_component_type
		.Subtype = UFConstants.UF_part_occurrence_subtype 
	End With
	 
	Dim resp as Selection.Response = theUI.SelectionManager.SelectTaggedObjects(prompt, title, scope, selAction, includeFeatures, keepHighlighted, selectionMask_array, selobj)
	If resp = Selection.Response.Ok Then
		Return Selection.Response.Ok
	Else
		Return Selection.Response.Cancel
	End If
	 
End Function 

Is it possible to do this?

Best regards

MANox

RE: Journal Add workpart to TaggedObejct

I can't help you but I'm all about this tool.
Would love to get this capability!

Good luck

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX11, Win 10 Pro

RE: Journal Add workpart to TaggedObejct

Hello,

Isn't better to process all parts in assembly than selecting each part by MaskTriple?

With best regards
Michael

RE: Journal Add workpart to TaggedObejct

(OP)
Hello,

sometimes I must export all parts, sometimes only few part.
My problem is - how select assembly (no all part - I think about assembly file in assembly tree).
This moment I do it like that:

CODE --> vb

Select Case Msgbox("Add assembly too?", MsgBoxStyle.YesNo, "Select assembly too?")
       Case 6
           Add_assembly = true
End Select 
and after:

CODE --> vb

If Add_assembly = true then
'code
End if 
But I would like select assemby with parts selection, if it's possible.

Best regards

MANok
NX11/12
TC10

RE: Journal Add workpart to TaggedObejct

Please provide some example how your structure looks. What You have in main assembly? Solid body, sheet body, etc. ?
Look at this thread, maybe this will help. thread561-346964: NX Journal Selection Priority

With best regards
Michael

RE: Journal Add workpart to TaggedObejct

(OP)
Hello,

I start from beginging:
1. I have assembly with (p.ex) 5 components.
2. I want open drawing for each component and for assembly.
3. I want export drawing to pdf and dxf and component and assembly to stp, x_t and igs (full assembly and for each component).

My joural do all of these.
But when I selected components to export, I can select only component, I can't select assembly.
I want ask - is it possible to add some maskTriple to select assembly (GD-01.000 on attached movie).

Best regards

MANok

NX11/12
TC10

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! Already a Member? Login


Resources

eBook - The Future of Product Development is Here
Looking to make the design and manufacturing of your products more agile? For engineering and manufacturing organizations, the need for digital transformation of product development processes just became more urgent than ever so we wanted to share an eBook that will help you build a practical roadmap for your journey. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close