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

How to put csys or vertex coordinates into the point of the UDF referenceitem with WebLink.

Highlighted
Participant

How to put csys or vertex coordinates into the point of the UDF referenceitem with WebLink.

Hello!!

 

I'm trying to create a UDF on weblink.

A point of referenceitem is required when creating UDF.

I want to include not only point but vertex (edge-start,end) and csys.

Is there any way??

 

var session = pfcGetProESession();
    var model = session.CurrentModel;
    var selOptions = pfcCreate ("pfcSelectionOptions").Create ("point,edge_end,edge_start,csys");
    selOptions.MaxNumSels = 1;

    pointSel = session.Select(selOptionsvoid null).item(0);
    
    if (pointSel.SelItem.Type != pfcCreate("pfcModelItemType").ITEM_POINT) {
      //??? ★
    }

    var udfInstructions = pfcCreate("pfcUDFCustomCreateInstructions").Create("box");
    
    pointRef = pfcCreate("pfcUDFReference").Create("point"pointSel);
    var refs = pfcCreate("pfcUDFReferences");
    refs.Append(pointRef);
    udfInstructions.References = refs;

 

 

I am not good at English.... I hope you understand my question..

thank you !!

 

Tags (1)
1 REPLY 1

Re: How to put csys or vertex coordinates into the point of the UDF referenceitem with WebLink.

Hi Cyan

 

I think this Mat post could help you.

 

Best Regards

 

Announcements