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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

cyan
5-Regular Member

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 !!

 

1 REPLY 1
Trebla
15-Moonstone
(To:cyan)

Hi Cyan

 

I think this Mat post could help you.

 

Best Regards

 

Top Tags