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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Can any one help to create Cross section by Jlink

ptc-2660468
1-Visitor

Can any one help to create Cross section by Jlink

Hi all,

 

Can any one help us to create cross section in model by Jlink ? I have listed the cross section which are in models.

I am aslo trying to create curve use x section feature in model.

 

Please help

 

----------------------------------------------------------------------------------------------------------------------------------------------------

Model mdl;

XSections xsecs;

ModelItems mdlItms;

 

JOptionPane.showMessageDialog(

null, "started");

 

mdl = curSession.GetCurrentModel();

 

Curves curvs;

Curve curv;

mdl.ListItems(ModelItemType.

ITEM_CURVE);

Views views = mdl.ListViews();

 

Solid solid;

solid = (Solid) mdl;

 

 

xsecs = solid.ListCrossSections();

XSection xVF;

 

for (int i=0; i<xsecs.getarraysize(); i++)

{

xVF = xsecs.get(i);

 

if(xVF.GetName()=="VF")

{

 

break;

 

0 REPLIES 0
Announcements


Top Tags