createmark selection from create listpanel

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello

 

I have created following program to 

1.trim surface with nodes

2.then duplicate selected nodes to same surface as above

3.convert  the duplicated nodes to point

 

so each time I am selecting same surfaces and same set of nodes

 

but are selected in *createlistpanel nodes and *createmarkpanel nodes 

 

and duplicated nodes again needs tobe seleted so is there any way by which I can do all of this in only one selection meas I am using same set of surfaces and nodes

 

*createmarkpanel surfaces 1 'Select surface for mark node'

*createlistpanel nodes 1 'select nodes'

*surfacemarksplitwithnodes 1 1

*clearmark surfaces 1

*clearlist nodess 1 

*createmarkpanel nodes 1 'select nodes'

*duplicatemark nodes 1 0

*createlistpanel surfaces 1 'Select surface'

set targetsurf [hm_getlist surfaces 1]

set targetsurfid1 [hm_getentityvalue surfaces [lindex $targetsurf 0] 'id' 0];

*markprojectnormallytosurface nodes 1 $targetsurfid1

*clearmark all 1

*clearlist surfaces 1 

*createmarkpanel surfaces 2 'Select surface for mark node'

*createmarkpanel nodes 2 'select nodes'
if { [ catch {*surfacemarkaddnodesfixed 2 2 0.00026801845 0 } ] } {
# Handle error
}

*nodecleartempmark

*clearmark nodes 2

*clearmark surfaces 2
 

Find more posts tagged with

Sort by:
1 - 2 of 21