×
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 to create a MACRO in UG

How to create a MACRO in UG

How to create a MACRO in UG

(OP)
I need to design one Macro who create layers, in ascending order, and create the name according to an alphanumeric pattern controlled and incremental (f.e. spline_01, spline_02, etc). In each one of these layers we need  insert a spline (diferent XYZ points in a txt file).
If when  you go to create a layer you detect that in this layer contains some objects, or if it is already named, the Macro should jump to the next one.
The ideal, it will be to create the Macro like a loop and parameterized.

RE: How to create a MACRO in UG

Which version of UG/NX are you using?

RE: How to create a MACRO in UG

A GRIP program will do that job and be easier to control and modify.
 

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli

RE: How to create a MACRO in UG

(OP)
The UG verison is the nx4

RE: How to create a MACRO in UG

I can't help but ask why you need to do this in the first place?  After all, with only 256 layers, you could soon be out of places to put Splines.  Perhaps it might be better to just give them unique names and Hide them and then use some Macro/Program to Show the needed Spline.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

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