Skip to main content
16-Pearl
April 16, 2021
Question

Amount of edges

  • April 16, 2021
  • 2 replies
  • 1724 views

hi all,

 

having simple code such:

 

public void listEdges() {
try {
Solid mySolid = (Solid) currentSession.GetCurrentModel();
int edgesQTY = mySolid.ListItems(ModelItemType.ITEM_EDGE).getarraysize();
currentSession.UIShowMessageDialog("EdgesQTY: ," +edgesQTY, null);
} catch (jxthrowable e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

 

I receive different results. when I have a simple solid part with one extrude feature (10x20x1) as e result I get :12 edges, but when this same is launched in sheetmetal part jlink shows 20 egdes. 

Any idea??

 

 

 

2 replies

14-Alexandrite
April 16, 2021

The sheetmetal part will have green and white surfaces that's why you will get 20 edges. You can ignore the white surface edges. Refer toolkit API "ProSmtSurfaceTypeGet"

 

  •  PRO_SMT_SURF_FACE—The surface is the face (green) surface created by a sheet metal feature.
  •  PRO_SMT_SURF_OFFSET—The surface is the offset (white) surface created by a sheet metal feature.
Gucio16-PearlAuthor
16-Pearl
April 16, 2021

I supposed that topic is connected to green/white surfaces.

Will I be able to check/get only eg. green surfaces in jlink (free license) ??

14-Alexandrite
April 16, 2021

As per my knowledge, it's not possible in jlink (free license). Maybe try to find some workaround by comparing edge and surface, associated with the edge.

15-Moonstone
April 16, 2021

Without seeing any graphics, I am thinking that the sheet metal model includes the bend tangencies as edges.