×
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

Macro to output parasolid

Macro to output parasolid

Macro to output parasolid

(OP)
I have a macro that will export a solid to a parasolid file.  My only problem is that it always names the output file the same.  Is there a way to enter a variable name (when recording the macro) so that the output file name is  the same as the partfile name?  And, what is the variable name if this is possible?

Thanks for any help.
 

RE: Macro to output parasolid

What version are you using?

If you tick on the "User Entry on File Selection Dialogs", just after you start recording a macro then when you play it back it should pause to let you type a different file name.  

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum

RE: Macro to output parasolid

Did the 'user entry' option work for you?

I have a very similar situation where I'd like to programmatically output a parasolid but none of the options seem to work. I can't use variables in a macro, and neither grip nor journaling support exporting parasolids.

Does anyone know if the NX API can export a parasolid and is it possible to modify a journal to do it?

RE: Macro to output parasolid

In journaling the following function should work for exporting parasolid.

Public Sub ExportData ( _
    body_list As Tag(), _
    file_name As String _
)

It is a wrapper for API method UF_PS_export_data..

Hope this helps,

Suresh
www.technisites.com.au

RE: Macro to output parasolid

Suresh,
Thanks for pointing me in the right direction.

I'm getting an error when I try to call the export data subroutine. The error says "Value of type 'NXOpen.Tag' cannot be converted to '1-dimensional array of NXOpen.Tag'."
Attached is my journal file.

Anyone have any ideas?

RE: Macro to output parasolid

Fantastic!

Thanks for the help, Suresh.

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