Cancel
Showing results for 
Search instead for 
Did you mean: 

Instantiate UDF using Nxopen VB .Net

Pioneer
Pioneer

Hi,

 

Is it possible to Instantiate UDF  using Nxopen VB .Net.

 

 

Reg,

Balaji.L

5 REPLIES

Re: Instantiate UDF using Nxopen VB .Net

Esteemed Contributor
Esteemed Contributor

Probably.

Have you tried creating a Journal & looking at the code?

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Instantiate UDF using Nxopen VB .Net

Pioneer
Pioneer
  • UDF feature not supportble for journal.

we have to use CreateInstantiatedUdf function.

 

Re: Instantiate UDF using Nxopen VB .Net

Experimenter
Experimenter

Hi

 

Could you give me some help about the use of "UF_MODL_create_instantiated_udf1"?

When I use this function the third parameter is always wrong,it coms the message "The input UDF parents data is invalid."

 

I need to associate UDF features to an edge, or a line.

Re: Instantiate UDF using Nxopen VB .Net

Pioneer
Pioneer

Hi,

you can refer this link for udf instatiation. Check it once whether you have defined, old reference, new reference and number of references.......for   "UF_MODL_udf_ref_data_t *" .

 

Better you can use UF_Modl_Create_Instantiated_udf method.

 

refere this links for documentation: 

 

https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/ugopen_doc...

 

https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/ugopen_doc...

 

thanks,

bala

Re: Instantiate UDF using Nxopen VB .Net

Experimenter
Experimenter

Hi

 

Yes you are right,I have checked the structure of the input.

Use "Create_instantiated_udf" can be generated normally,but “Create_instantiated_udf” can only apply part of the scene.
Perhaps in some cases, only "create_instantiated_udf1" can meet the requirements.
Only it can adjust the reference direction of the association.

 

 

Anyway, thank you very much!