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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

AFX: UDF_PARAM in CREATE_UDF section?

YaroslavSin
17-Peridot

AFX: UDF_PARAM in CREATE_UDF section?

It is possible to set value of a variable parameter in UDF?

Using UDF_PARAM in CREATE_UDF section.

 

BEGIN_ASM_DESCR

IF_1 ELEM_NEW
CONFIG_ELEM
END_IF_1

IF_2 ELEM_EXIST
USER_SELECT CSYS START_CSYS
USER_INPUT_PARAM DA
USER_INPUT_PARAM L
USER_INPUT_PARAM L1
USER_INPUT_PARAM L2
USER_INPUT_PARAM Z
USER_INPUT_PARAM M
END_IF_2

CREATE_UDF STAGE_SHLIC START_CSYS STAGE_SHLIC
UDF_REF START_CSYS START_CSYS
UDF_PARAM DA DA
UDF_DIM L  L
UDF_DIM L1 L1
UDF_DIM L2 L2
UDF_PARAM Z  Z
UDF_PARAM M  M
END_CREATE_UDF

END_ASM_DESCR

BEGIN_GUI_DECSCR

GLOBAL_PICTURE stage_square.png

USER_SELECT CSYS START_CSYS 1

USER_INPUT_PARAM DOUBLE DA
USER_INPUT_PARAM DOUBLE L
USER_INPUT_PARAM DOUBLE L1
USER_INPUT_PARAM DOUBLE L2
USER_INPUT_PARAM DOUBLE Z
USER_INPUT_PARAM DOUBLE M

END_GUI_DESCR
2 REPLIES 2

Hello,

 

setting UDF variale parameter with this UDF_PARAM is not possible. It just sets value for an

parameter which exists in a feature of the UDF.  Maybe you can send your UDF and your tab-file and an example assembly to test to afx@buw-soft.de then I can check and probably find a way to do what you want

 

Stefan

Files was sent.

Looks like this is waht I need. I want set value of the parameters in on of the feature in UDF. But don't see the difference between variable parameters in UDF. How to mark in which feature need change the value of the parameters? 

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags