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.
Thanks for any help.





RE: Macro to output parasolid
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
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
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
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
Regards,
Suresh
www.technisites.com.au
RE: Macro to output parasolid
Thanks for the help, Suresh.