Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I load this macro

Status
Not open for further replies.

berri2

Mechanical
Apr 6, 2010
139
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.
 
Replies continue below

Recommended for you

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
 
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.
 
If you need a program to open the .rar file, 7zip works well (and is free).
 
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.
 
Hi thanks,

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

Thanks all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor