Getting the part name
Getting the part name
(OP)
Hi!
I have an Object that includes different parts. How is it possible to get those parts names?
A Little example:
theSession = Session.GetSession()
workPart = theSession.Parts.Work
displayPart = theSession.Parts.Display
MsgBox(workPart.name)
Thank you very much!
I have an Object that includes different parts. How is it possible to get those parts names?
A Little example:
theSession = Session.GetSession()
workPart = theSession.Parts.Work
displayPart = theSession.Parts.Display
MsgBox(workPart.name)
Thank you very much!





RE: Getting the part name
To get the name of the file use: workPart.Leaf
www.nxjournaling.com
RE: Getting the part name
RE: Getting the part name
If you have a reference to a part object, you can use the .ComponentAssembly property to query what components the part references, if any.
If you have a valid NX license, you can download the help files (if you don't have them already) from the GTAC website.
www.nxjournaling.com
RE: Getting the part name
I am finaly able now to use the Debugger. I saw that there is the Option "OwningComponent" and "DirectOwner". What is the difference between parent and that?
RE: Getting the part name
www.nxjournaling.com