Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

NX 12: Using KF to build an assembly from a selection of component parts

Status
Not open for further replies.

BOPdesigner

Mechanical
Nov 15, 2005
434
0
0
US
Hi,
I have some old NX2 era KF code (dfa<->dlg) that uses the ug_component class to create a simple assembly by placing the parts in an assembly by absolute positioning. For example:
.
.
(Child) assemble_comm_slot: {
Class, ug_component;
File_Name,if (comm_slot:="10-100-Base-T")
then "d:\kf\part1.prt"
else "d:\kf\part2.prt";
Reference_Set_Name,"BODY";
Component_Name,"";
Origin,point(101.6,0,0);
X_Axis,Vector(1,0,0);
Y_Axis,Vector(0,1,0);
Color,0;
};
.

A couple of questions.
1) Is there a way to "port" or update the code to work with the newer Block UI Styler (dlx) dialog format? If so, how do I relink the dfa code to my new dlx?
2 Rather than place the components using absolute coordinates, I would like to use assembly constraints (without user interaction). Is it possible? Can somebody share an example of this using the nx_constraint class? I probably will have to dig in and use part details like the IDs of faces, centerlines, etc. right?

Thanks
 
Status
Not open for further replies.
Back
Top