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!

Drafting curve owning part VB.NET journal

Status
Not open for further replies.

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
 
Replies continue below

Recommended for you

Hi Any advise/help regarding the post. Question is the Vb.net API to find out the master model name of the drafting curve.

Ram K
NX 9,TeamCenter
Mechanical Design
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor