×
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

Export to Parasolid in a journal

Export to Parasolid in a journal

Export to Parasolid in a journal

(OP)
Hi,

Can anyone help me to perform the following task... I'm using NX5

I need to execute a macro or journal without opening Unigraphics that performs the following tasks using an already created file (suppose it is named "3dmodel.prt"):

1. Modify some expressions in the file 3dmodel.prt (I can do this with a journal or macro)
2. Export a *.jpg file (I have made it with a macro but not with a journal)
3. Export the modified file as Parasolid (I have made it with a macro but not with a journal)

I'm using the following *.bat file to execute the journal (named journalxx.vb) without opening UG. Is there a way to execute a macro without opening UG?

*.bat file to execute journalxx.vb
-------------------------------------------
cd C:\FILES PATH
run_journal journalxx.vb -args 3dmodel.prt
-------------------------------------------

Summarizing:

Inputs
- 3dmodel.prt
- journal or macro
- *.bat to execute the journal or macro

Outputs
- *.jpg of the modified file
- Parasolid of the modified file

Problems
- Using journal
    - I don't know how to export to Parasolid and JPG in a journal
- Using macro
    - I don't know how to execute a macro without opening UG (using a *.bat file)


Thanks

chenecho

RE: Export to Parasolid in a journal

(OP)
I found a solution

I can execute a macro in DOS batch

ugii.bat -key:MACRO-NAME.macro

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