Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

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

Status
Not open for further replies.

BOPdesigner

Mechanical
Joined
Nov 15, 2005
Messages
434
Location
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.

Part and Inventory Search

Sponsor

Back
Top