Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

how to use a custom cam_general.dat?

Valued Contributor
Valued Contributor

I use 

UGII_CAM_CONFIG=${UGII_CAM_RESOURCE_DIR}configuration\amolf_cam_general.dat

for my own .dat file. For testing before going to a new NX version I used

UGII_CAM_CONFIG=${UGII_CAM_RESOURCE_DIR}configuration\amolf_cam_test.dat

What I see now is that NX will always use amolf_
cam_general.dat. If I use the "reset to default" in the manufacturing preference dialog it will switch to amolf_cam_general.dat. But if I restart NX it will have reverted to amolf_cam_test.dat.

 

I am wondering where and how you are supposed to set this variable. 

W10 NX12.0.2.9
testing v1847
10 REPLIES

Re: how to use a custom cam_general.dat?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I believe dialog memory is the issue?

 

I've always had erratic results with this ENV - for some people it works, others it doesn't.

Never been able to figure out why.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: how to use a custom cam_general.dat?

Gears Phenom Gears Phenom
Gears Phenom

If your using a customized Role it will also retain the config file.  You may need to update your Role once you have the config file you want loaded.

 

 

John Joyce, Manufacturing Engineer,
Senior Aerospace

NX 11.0.2.7 Vericut 8.0.3 - Statements and opinions are mine alone and do not reflect
the opinion of my employer or any other member of the human race

Re: how to use a custom cam_general.dat?

Valued Contributor
Valued Contributor

If I use the reset button in the dialog it still doesn't work. A reset of the dialog, then a reset to default, Ok and restart NX. It is still the same as before the resets. 

 

Changing to the default advanced role didn't change what was in the preferences dialog. But after a reset to default and a restart of NX the setting has indeed changed!  But changing back to my own role I have the old configuration back. 

 

I don't save the dialog memory to my roles. Although it doesn't seem to be a dialogmemory thing. 

 

 

How can anyone keep track of which option is where? Even if this behaviour is documented (didn't read about it though).

Why would you want it to work like this? I really don't see the point why every individual user should be able to choose their own template configuration. I do see the point why every individual user is not able to choose their own template configuration. 

 

W10 NX12.0.2.9
testing v1847

Re: how to use a custom cam_general.dat?

Valued Contributor
Valued Contributor

Another quick test:

Reset to default, saved my custom role, restart NX: and yes! I have the changed the configuration setting. 

 

Wow, is this done to provide some extra puzzling on slow days? 

W10 NX12.0.2.9
testing v1847

Re: how to use a custom cam_general.dat?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

At risk of going off-topic...

 

When you get "large", it is useful to filter down to smaller sets of things.

I support 10+ plants, and 100+ machines (posts)

I use different config files to specify

- different operation template files (some groups use their own customized operation templates, which likely won't be useful in other groups)

- different lists of posts (pick one of 4-8 machines, not 1 of 100)

- different UDE lists (I don't control the UDEs in the posts)

etc.

 

Different groups might also have different tool libraries (probably not best practice, but the users only want to see "their" tools, not "all" tools used at Moog) FBM settings, etc.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: how to use a custom cam_general.dat?

Valued Contributor
Valued Contributor
But Ken, how do you specify the different operation template files? Do you split out on UGII_GROUP_DIR? Different resource folders maybe?

With what I found out today it is not possible to reliably use a specific .dat file.
W10 NX12.0.2.9
testing v1847

Re: how to use a custom cam_general.dat?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

In  the CAM configuration file (e.g. cam_general.dat)

This line points at the desired OPT file:

 

TEMPLATE_OPERATION,${UGII_CAM_TEMPLATE_SET_DIR}cam_general.opt

So just point at a separate .OPT file.

 

 

The .OPT file lists the operation templates (from cam_general.opt):

 

${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_contour.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_multi-axis.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_multi_blade.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_rotary.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}hole_making.prt
## ${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}drill.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}turning.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}wire_edm.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}probing.prt
## ${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}laser.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}solid_tool.prt
## ${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}machining_knowledge.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}work_instruction.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}robot.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}multi_axis_deposition.prt


##
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}mill_planar.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}mill_contour.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}mill_multi-axis.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}mill_multi_blade.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}mill_rotary.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}hole_making.prt
## ${UGII_CAM_TEMPLATE_PART_METRIC_DIR}drill.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}turning.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}wire_edm.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}probing.prt
## ${UGII_CAM_TEMPLATE_PART_METRIC_DIR}laser.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}solid_tool.prt
## ${UGII_CAM_TEMPLATE_PART_METRIC_DIR}machining_knowledge.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}work_instruction.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}robot.prt
${UGII_CAM_TEMPLATE_PART_METRIC_DIR}multi_axis_deposition.prt

 

 

If you are working in TC, you can have the .DAT/.OPT files in native mode, but refer to operation template parts in TC by (in the .OPT file) using this syntax:

@DB/mill_planar_inch/A
@DB/mill_contour_inch/A

@db/(item id)/(item revision)

 

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: how to use a custom cam_general.dat?

Valued Contributor
Valued Contributor
This way works, but now you need to point to a different folder. IF you also need to do this for the posts and ude's for instance things get a bit complicated.

By far the easiest would be if UGII_CAM_CONFIG would work as expected.
W10 NX12.0.2.9
testing v1847

Re: how to use a custom cam_general.dat?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

The CAM configuration is saved in the part file, so that the configuration used during the creation of the CAM setup is preferred.

In addition loading a machine also writes the paths to the configuration files to the CAM setup.

Sometimes NX is remembering too much to keep us searching.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Learn online





Solution Information