Polynom3000
Mechanical
- Apr 30, 2014
- 21
Hello community,
I am facing some problems regarding the extension of an edge (some edges) and the previous selection of some associatively linked face(s). My goal is to execute some VB Macro which asks the user to select some faces and create a Face Chain [see 1)]. In the past I worked with a modified version of the following solution provided by cowski [ 16 Jan 13 10:15]. Is there any possibility to modify the existing code?
Afterwards the user should select only one edge of the Linked Face [see 2)] in order to grap the whole Linked Face with all its Faces which has been selected in an earlier step. Examining the corresponding journal helps a lot, but I haven’t found a way yet to directly “read” the internal name after the selection of the desired edge with a specific select function.
It is possible to use any coordinates of desire, they don’t seem to have any impact (just some help points as recorded in the journal). The interesting part is:
“-15 * 4” (contains the specific internal name of the edge and the number of the face -> Linked Face, Face Chain)
Further investigations with different edges (and 4 selected faces at all) show the following internal name pattern of the specific edge:
“-13 * 2”
“-1 * 3”
“-21 * 1”
Additional information: All those edges are connected to each other. This means if you select one of them, as described in [2)] the Trim and Extend feature recognizes the other edges automatically in any case and extends all faces in the same way as expected.
STEPS and configurations:
1) WAVE Geometry Linker
Type: Face
Face Option: Face Chain
Select Face: Any number accepted (1 to 10+) [of course, the selected faces are connected to each other, there is no space between them -> one output only]
Settings: Associative [NXObject is needed for further manipulations]
RESULT: 1 Linked Face in the Part Navigator
2) Trim and Extend
Type: By Distance
Edge to Move: Select Edge [select only one edge]
Filter, Curve Rule: Tangent Curves [in order to grap the whole Linked Face with all its Faces]
Extension, Distance: xxx [mm]
Settings, Extension Method: Natural Curvature [should be fine, I guess]
RESULT: Trim and Extend feature, connected with the Linked Face
I am looking forward to this. Any help is appreciated!
Please also check the attached image for a quick overview. Hope it helps.
Best regards,
Polynom3000
I am facing some problems regarding the extension of an edge (some edges) and the previous selection of some associatively linked face(s). My goal is to execute some VB Macro which asks the user to select some faces and create a Face Chain [see 1)]. In the past I worked with a modified version of the following solution provided by cowski [ 16 Jan 13 10:15]. Is there any possibility to modify the existing code?
Afterwards the user should select only one edge of the Linked Face [see 2)] in order to grap the whole Linked Face with all its Faces which has been selected in an earlier step. Examining the corresponding journal helps a lot, but I haven’t found a way yet to directly “read” the internal name after the selection of the desired edge with a specific select function.
Code:
Dim edge1 As Edge = CType(extractFace1.FindObject("EDGE * -15 * 4 {(2873.4586875745986,-812.9738040734527,696.0105349530709)(2902.9767549331609,-815.7188343011358,664.2488898245941)(2943.0835897240086,-810.8906101315437,647.7489590606707) LINKED_FACE(1300)}"), Edge)]
It is possible to use any coordinates of desire, they don’t seem to have any impact (just some help points as recorded in the journal). The interesting part is:
“-15 * 4” (contains the specific internal name of the edge and the number of the face -> Linked Face, Face Chain)
Further investigations with different edges (and 4 selected faces at all) show the following internal name pattern of the specific edge:
“-13 * 2”
“-1 * 3”
“-21 * 1”
Additional information: All those edges are connected to each other. This means if you select one of them, as described in [2)] the Trim and Extend feature recognizes the other edges automatically in any case and extends all faces in the same way as expected.
STEPS and configurations:
1) WAVE Geometry Linker
Type: Face
Face Option: Face Chain
Select Face: Any number accepted (1 to 10+) [of course, the selected faces are connected to each other, there is no space between them -> one output only]
Settings: Associative [NXObject is needed for further manipulations]
RESULT: 1 Linked Face in the Part Navigator
2) Trim and Extend
Type: By Distance
Edge to Move: Select Edge [select only one edge]
Filter, Curve Rule: Tangent Curves [in order to grap the whole Linked Face with all its Faces]
Extension, Distance: xxx [mm]
Settings, Extension Method: Natural Curvature [should be fine, I guess]
RESULT: Trim and Extend feature, connected with the Linked Face
I am looking forward to this. Any help is appreciated!
Please also check the attached image for a quick overview. Hope it helps.
Best regards,
Polynom3000