In addition to assemble components, it is sometimes necessary to add material cuts or holes to the components. Therefor it is possible to define an automatic UDF creation.
To do so you have to define all dimensions and references as described below.
CREATE_UDF NAME ASSEMBLE_REFERENCES [Role-String]
Type Reference1 Reference2
...
END_CREATE_UDF
NAME = Name of the UDF (in folder .../parts/udfs)
ASSEMBLE_REFERENCES = ASSEMBLY | predefined selection (User selections Search references, dimensions and parameters)
OPTIONAL: Role-String = This variable is needed, if you use the same UDF multiple times and want to have different values for each
Type = UDF_REF | UDF_DIM | UDF_EXP_PARAM | UDF_EXP_REF (further information in: Variables & Commands)
Reference1 = Reference in the UDF
Reference2 = Reference of the mounting part
Example:
In this example the procedure that is reqired to assemble a UDF is described.
To assemble the connector a through hole is required.
Therefor it has to be predefined either in the component itself or in a separate *.TAB File.
In the Example the assemble actions are stored as parameters directly in the model.
BUW_CI_1="USER_SELECT FACE EINBAUPOSITION"
BUW_CI_2="SEARCH_PROF_ENDSURF EINBAUPOSITION PROF_ENDFLAECHE"
BUW_CI_3="SEARCH_PROF_SYSTEM_BORE_ENDPNT EINBAUPOSITION BOHRUNG_ENDPUNKT"
BUW_CI_4="SEARCH_MDL_REF THIS POINT REFPNT VERBINDER_PUNKT"
BUW_CI_5="SEARCH_MDL_REF THIS PLANE XY VERBINDER_XZ"
BUW_CI_6="SEARCH_MDL_REF THIS PLANE YZ VERBINDER_YZ"
BUW_CI_7="SEARCH_MDL_PARAM THIS LOCH_DM LOCH_DM"
BUW_CI_8="SEARCH_MDL_PARAM THIS LOCH_ABST LOCH_ABST"
BUW_CI_9="ASSEMBLE THIS"
BUW_CI_10="ALIGN BOHRUNG_ENDPUNKT VERBINDER_PUNKT"
BUW_CI_11="ORIENT EINBAUPOSITION VERBINDER_XZ"
BUW_CI_12="ORIENT PROF_ENDFLAECHE VERBINDER_YZ"
BUW_CI_13="END_ASSEMBLE"
BUW_CI_14="CREATE_UDF THRU_HOLE EINBAUPOSITION"
BUW_CI_15="UDF_REF PLAZIERUNGSEBENE EINBAUPOSITION"
BUW_CI_16="UDF_REF REF_FLAECHE PROF_ENDFLAECHE"
BUW_CI_17="UDF_REF REF_PUNKT BOHRUNG_ENDPUNKT"
BUW_CI_18="UDF_DIM BORE_DM LOCH_DM"
BUW_CI_19="UDF_DIM BORE_DISTANCE LOCH_ABST"
BUW_CI_20="END_CREATE_UDF"
Syntax described step by step:
|
BUW_CI_1: The user selects the desired mounting position (USER_SELECT) through selection of a profile surface BUW_CI_2 & 3: Searches for the profile end surface and the bore end point. A correct profile definition is a basic requirement for this process. The definition of the SEARCH_PROF_... commands can be found in in the Chapter HIER LINK REIN! |
|
BUW_CI_4 - 8: All necessary information are being written in variables. 1. References
SEARCH_MDL_REF: 2. Parameter
SEARCH_MDL_PARAM: BUW_CI_9 - 13: Assembly of the connector
|
|
BUW_CI_14: The previously done selection (BUW_CI_1) defines the part, in which the UDF "THRU_HOLE" should be created. BUW_CI_15 - 19:The UDF requires three references and two variable dimensions. 1. References UDF_REF: PLAZIERUNGSEBENE
- assemble position 2. Variable dimensions UDF_DIM: BORE_DM
-
bore diameter BUW_CI_20: Marks the UDF end |