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

JLink to place UDF

jbryant74
7-Bedrock

JLink to place UDF

I want to understand how difficult it would be to reproduce this functionality using the free version of JLink. Currently, we have some Smart Assembly licenses and use them for placing UDFs. How challenging would it be to achieve the same with JLink, so we can deploy to a larger group without relying on Smart Assembly licenses? Here is a sample bit of code that we use in Smart Assembly. Basically, it shows an image of what to select, and then the user makes a selection, which Smart Assembly uses to place the UDF.

MESSAGE_BOX_EX IMAGE lib:PIC\TC_00_0.GIF GENERAL "TOPCAP AXIS" "SELECT TUBE SURFACE" BUTTONS JUNK
USER_SELECT SURFACE TUBE_SURFACE
CREATE_UDF lib:udf\new_axis THIS UDF_GROUP
UDF_REF TUBE_SURFACE TUBE_SURFACE
END_CREATE_UDF
GET_GROUP_FEATURE UDF_GROUP 1 GROUP_FEA
SET_REF_NAME GROUP_FEA "SA_TOP_CAP_AXIS"
UNGROUP_FEATURES UDF_GROUP
SEARCH_MDL_REF EXCLUDE_INHERITED THIS AXIS "SA_TOP_CAP_AXIS" TOP_CAP_SPRING_AXIS
1 REPLY 1

It depends... If you have programming experience and Java.

Nothing extra ordinary.

Creating Features from UDFs
Method Introduced: pfcSolid.Solid.CreateUDFGroup

 

...\Creo X.0.X.0\Common Files\otk_java_free\otk_java_appls\jlinkexamples\pfcUDFCreateExamples.java

Announcements


Top Tags