×
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

Write NX feature name as Object Name in Parasolid Export

Write NX feature name as Object Name in Parasolid Export

Write NX feature name as Object Name in Parasolid Export

(OP)
Dear NX experts

I am trying to export a NX ".prt" file as Parasolid for CFD/FEA analysis. The objects do not have any features / parameters associated except for a feature title name like this Body(4) "FluidFlowpath".

I am trying to use a Journal file to get the feature name associated with a body such as "FluidFlowpath" and assign it as body name in Parasolid file.

few code lines from my NX file
-----CODE SNIPPET TO PRINT FEATURE NAME
'--------------
' loop through all bodies in display session
'--------------
For each obj As Body in bdyCol
bdyFeat = featCol.GetAssociatedFeature( obj )
strBodyName = bdyFeat.GetFeatureName.ToString

lw.WriteLine("Object Tag: " & obj.Tag)
lw.WriteLine("Object Type: " & obj.GetType.ToString)
lw.WriteLine("Object Name: " & strBodyName )
Next
---

The output is shown below. I could not get the feature name "Fluidflowpath" with the GetFeatureName command and get only the Body #. What is the command to extract the name "Fluidflowpath" I have associated with the Body.
-----OUTPUT
Object Tag: 27166
Object Type: NXOpen.Body
Object Name: Body(1)
Object Tag: 26889
Object Type: NXOpen.Body
Object Name: Body(2)
Object Tag: 26922
Object Type: NXOpen.Body
Object Name: Body(4)
----

Information about the body
--
Feature status for: FluidFlowpath(4)
Feature is alive

Owning part H:\FinalAnalysisModel.prt
Owning layer 1
Modified Version 201 25 Mar 2014 17:28 (by user )
Created Version 144 05 Mar 2014 15:49 (by user )

------------------------------------------------------------

Feature Parameters for: FluidFlowpath(4)
------------------------------------------------------------
Feature Type - Body(4)

Feature Associativity for: FluidFlowpath(4)
------------------------------------------------------------


============================================================

Thanks
Ravi

RE: Write NX feature name as Object Name in Parasolid Export

There are two feature names. One is a system defined name and the other is user defined name. With your line of code strBodyName = bdyFeat.GetFeatureName.ToString you get the system name

With strBodyName = bdyFeat.Name you get the user defined name.

Hope this helps.

Frank Swinkels

RE: Write NX feature name as Object Name in Parasolid Export

(OP)
Thanks a lot Frank. It works

Ravi

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