RAMNX
Mechanical
- Dec 29, 2011
- 28
Hi
I am writing a VB.NET journal which will be executed on Assembly drawings. User will select a drafting curve or face in a drafting view. On Apply journal has to collect selected objects original part file name and return some attribute vales.
Below are few lines from the Journal.
Dim selObj As TaggedObject() = selection0.GetSelectedObjects()
Dim opart As Assemblies.Component = selObj.OwningComponent ‘This is returning Null value or Drafitng file name
Dim plist As PropertyList = selection0.GetProperties
Dim props As String() = plist.GetPropertyNames()
Dim selpoint As Point3d = selection0.PickPoint 'this point is the origin of leader
When running this code it is fetching owing part as Drawing file name instead of original part file name(Child Part file in assembly structure)
Could somebody suggest a API or Method to return drafting objects original part file name.
Ram K
NX 9,TeamCenter
Mechanical Design
I am writing a VB.NET journal which will be executed on Assembly drawings. User will select a drafting curve or face in a drafting view. On Apply journal has to collect selected objects original part file name and return some attribute vales.
Below are few lines from the Journal.
Dim selObj As TaggedObject() = selection0.GetSelectedObjects()
Dim opart As Assemblies.Component = selObj.OwningComponent ‘This is returning Null value or Drafitng file name
Dim plist As PropertyList = selection0.GetProperties
Dim props As String() = plist.GetPropertyNames()
Dim selpoint As Point3d = selection0.PickPoint 'this point is the origin of leader
When running this code it is fetching owing part as Drawing file name instead of original part file name(Child Part file in assembly structure)
Could somebody suggest a API or Method to return drafting objects original part file name.
Ram K
NX 9,TeamCenter
Mechanical Design