×
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

how can I load this macro

how can I load this macro

how can I load this macro

(OP)
Hi,

How can I load this macro from Siemens.

I am trying to load with UGOPEN, but I can't.

What I am doing wrong.

Thanks.

RE: how can I load this macro

Hi,

At the moment I am not able to open the rar file to see the extension of your 'macro'.
But I can say :
If it's .macro then try tools / macro / playback
If it's .vb then try tools / journal / run

I hope this help

What's your NX version ?

Regards


Regards
Didier Psaltopoulos
http://www.psi-cad.com

RE: how can I load this macro

I never heard of a ".rar" file until now, so I looked it up.
It appears to me that you need to unzip it and then you should be able to extract, and run, the macro like Didier mentioned.

RE: how can I load this macro

If you need a program to open the .rar file, 7zip works well (and is free).

RE: how can I load this macro

Berri2,

(Unless I have misunderstood the question...)

The rar does not contain any file that NX can execute - it contains source code which must be compiled and linked. The instructions from the readme.txt in the rar must be followed to generate a binary dll file which NX can be launched via "File-> Execute -> NX Open".

HTH, Joe

From the read me...
' ==================================================================================
'
'             Copyright (c) 2008  Siemens PLM Software
'               Unpublished - All rights reserved
'
'  
' ==================================================================================
-------------------------------------------------------------------------------
        Block Styler Hole-Coordinates Example
-------------------------------------------------------------------------------

-----------
Description
-----------

This example demonstrates measurement of holes coordinates from user defined origin
using the Block Styler C++ APIs.

--------------
Files required
--------------

    1. HoleCoordinates.cpp
    2. HoleCoordinates.hpp
    3. HoleCoordinates.dlx
    4. HoleCoordinates.prt
        
      The dlx file must be placed in one of the following locations:
      1.) From where NX session is launched
      2.) $UGII_USER_DIR/application
      3.) For released applications, using UGII_CUSTOM_DIRECTORY_FILE is highly
          recommended. This variable is set to a full directory path to a file
          containing a list of root directories for all custom applications.
          e.g., UGII_CUSTOM_DIRECTORY_FILE=<NX install directory>\ugii\menus\custom_dirs.dat

-------------------------
How to Build C++ examples
-------------------------

   Windows
   -------
   1. Using Visual Studio - create a new project using the NX Open AppWizard.
      This is described in the Automation -> NXOpen -> Open for C/C++ ->
      Open C Reference Guide -> Overview -> Setting up your system.
      When setting the Application Settings,
      select "Create an Internal application" and select C++ as the language.

   2. Remove all the existing files from project.
   
   3. Add the HoleCoordinates.cpp, HoleCoordinates.hpp to Source Files and Header Files respectively
      by selecting the Project pulldown and select "Add Existing Item...". Select the file
      using the popup window.

   4. Build the internal image by going to the Build menu and selecting either
      "Build Solution" or "Rebuild Solution".
 
   This will create an executable called HoleCoordinates.dll in the Debug directory.

   The uflink tool can also be used to create the executable by following these steps:
   1. Open an NX command prompt window.
   2. Change directories to the directory containing the source code.
   3. Compile and link using uflink:

      uflink UFDLL=HoleCoordinates.dll

   This will create HoleCoordinates.dll in the current directory.

RE: how can I load this macro

(OP)
Hi thanks,

I am quiet mew in UGOPEN. I will test it.

Thanks all.

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