×
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!
  • Students Click Here

*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

Jobs

Drafting curve owning part VB.NET journal

Drafting curve owning part VB.NET journal

Drafting curve owning part VB.NET journal

(OP)
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

RE: Drafting curve owning part VB.NET journal

(OP)
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

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!


Resources