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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Amount of edges

Gucio
14-Alexandrite

Amount of edges

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

 

 

 

Krzysztof
4 REPLIES 4
syalagudri
12-Amethyst
(To:Gucio)

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.
Gucio
14-Alexandrite
(To:syalagudri)

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) ??

Krzysztof
syalagudri
12-Amethyst
(To:Gucio)

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.

msteffke
12-Amethyst
(To:Gucio)

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

Top Tags