Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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;