cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

customer‘s udf apply for AFX

伟曹
4-Participant

customer‘s udf apply for AFX

HI,

In AFX,Connectors and Equipment use lots of udfs for design,this is nice for design  the similar fetures .

There are three files about udfs in part mode,

1. D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\connectors\steel_construction_mm\no_standard\beam_end_cope.tab

    D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\udfs\beam_end_cope.gph

2 D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\connectors\steel_construction_mm\no_standard\beam_end_cutout.tab

    D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\udfs\beam_end_cutout.gph

3 D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\connectors\steel_construction_mm\no_standard\pipe_squash.tab

    D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\udfs\pipe_squash_cyl_ref.gph

We can very well use three udfs for design and modify variable dimensions via menu  of  "modify connectors element" ,

Variable size value can be updated automatically.

1.jpg


If I define udf  for design , for example , I set up a cylindrical feature of udf ,  and then join this udf name to the sel file.

……………

2_winkel asm_copy

beam_end_cutout udf

beam_end_cope udf

pipe_squash udf

z_zhu udf

dir_up dir

sure set up the load files

    D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\connectors\steel_construction_mm\no_standard\z_zhu.tab

Z_ZHU.TAB:

BEGIN_ASM_DESCR

IF_1 ELEM_NEW

CONFIG_ELEM

END_IF_1

IF_2 ELEM_EXIST

USER_SELECT FACE PLACE_SURFACE

USER_SELECT FACE YZ_SURFACE

USER_SELECT FACE XY_SURFACE

USER_PARAM_INPUT H

USER_PARAM_INPUT W

END_IF_2

CREATE_UDF z_zhu PLACE_SURFACE z_zhu

UDF_REF PLACE_PLANE PLACE_SURFACE

UDF_REF PLANE_YZ YZ_SURFACE

UDF_REF PLANE_XY XY_SURFACE

UDF_DIM H H

UDF_DIM W W

END_CREATE_UDF

END_ASM_DESCR

BEGIN_GUI_DECSCR

GLOBAL_PICTURE beam_end_cutout_tab.gif

USER_SELECT FACE PLACE_SURFACE 1

USER_SELECT FACE YZ_SURFACE 2

USER_SELECT FACE XY_SURFACE 3

USER_INPUT_PARAM DOUBLE H 20

USER_INPUT_PARAM DOUBLE W 20

END_GUI_DESCR

    D:\Program Files\PTC\Creo 3.0\M040\Common Files\afx\parts\udfs\z_zhu.gph

2.png

Then, we can use this udf loading into part file in afx,  but if we modify this udf via menu  of  "modify connectors element" ,

The message bar prompt  "No components selected by automatic intersection",

3.png

Variable size value cannot be updated automatically

WHAT HAPPEN ? 


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Hello,

this message is not created by AFx but by Creo itself. It Looks like you are trying to create an UDF with a cut Feature in an assembly model (not in a part model).

Does the surface you select as PLACE_SURFACE belong to part or to assembly?

If you do not get it working you can send UDF + tab-file + model to test + short description of picks how to reproduce issue to me then I can check

stefan@buw-soft.de

Stefan

Top Tags