Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Macro or Journaling - View Dependent Edit

Status
Not open for further replies.

Vyacad

Mechanical
Sep 10, 2014
12
Hello evreyone.

I´m trying to start a little customize in NX.

I need to create a macro with the following instructions:
I want to change some dashed lines so they are white and dashed just after I select these dashed lines.

Once I start recording the macro, I do the following steps:

1) View Dependent Edit
2) I select the view
3) Edit entire Objects
4) Line color>White
5) Line Style> Dashed
6) Line Widht>0.13mm
7) APPLY
8) Selection Filter>Curve

From step 2 (view selection) I would like the curve selection window to appear but the macro stops at step 3.

What am I doing wrong?

Thanks!
 
Replies continue below

Recommended for you

It's always good to know the NX version you are running.
Macros are a bit "rigid" in how they work, they will repeat exactly what you did when you recorded it.
When recording, you select a view, the macro will when replayed select that same view and if replayed on a different drawing or sheet, the macro will halt due to that the view isn't the same.
-It actually stores the unique id of that view. Therefore, You need to have/ insert a "user entry" in the macro on ALL selections, else the macro will not work especially well.
( the exception is if you use the macro on exactly the same object again and again.)
So when recording, NX prompts for what view to edit , Tools-Macro-user entry, then you pick the view
and when you are to select the curve, insert another user entry before picking the curve.

- The User entry insert will make the macro skip the ID of the curve you selected during the recording.

Regards,
Tomas

Never try to teach a pig to sing. I wastes your time and it annoys the pig.:)
 
I tried repeating this and it acts slightly different than i expected.
I tried in NX 1984 . In the 1984 version there are no Macro buttons in the developer tab. I added these in there since I know one needs to create macros by trial and error...
I added "start record", "user entry" and "Playback buttons".
If the "User entry button" is there visible when recording, it has a different action than I expected, It changes into "User entry Continue Recording" when i have selected the view.
when replaying the macro, the same button becomes active but with the text "User entry Continue playback"
If I obey these "hints" ( =click that button), the Macro works . Pressing OK instead of pressing the "User entry Continue playback" terminates the macro with an error message.

Hope this helps,
Tomas


- If I hadn't added these buttons to the toolbar I would not have noticed the change of button text.


 
Thank you Tomas.

I´ll learn more about this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor