Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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??
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. |
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) ??
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.
Without seeing any graphics, I am thinking that the sheet metal model includes the bend tangencies as edges.