Selection of nodes to fill field of tree
Posted: Tue Sep 13, 2022 10:56 am
I want to fill a field of data tree with the number of a point in the geometry. Is it possible to add an <edit_command> to call a function to select a point using the graphical interface?
Here is what I was trying to do, but was unable to find a tcl function to call a pick point selection:
<value n="point1" pn="N. point 1" help="Number of the point in the geometry to attribute the value 1 of the load" >
<edit_command n="select_points" pn="Select Points" proc="ProcSelectPoint"/>
</value>
<proc n='ProcSelectPoint' args='args'>
<![CDATA[
SpdAux::ProcSelectPoint $domNode $args
]]>
</proc>
proc SpdAux::ProcSelectPoint {domNode args} {
}
Best regards
Tiago Valente
Here is what I was trying to do, but was unable to find a tcl function to call a pick point selection:
<value n="point1" pn="N. point 1" help="Number of the point in the geometry to attribute the value 1 of the load" >
<edit_command n="select_points" pn="Select Points" proc="ProcSelectPoint"/>
</value>
<proc n='ProcSelectPoint' args='args'>
<![CDATA[
SpdAux::ProcSelectPoint $domNode $args
]]>
</proc>
proc SpdAux::ProcSelectPoint {domNode args} {
}
Best regards
Tiago Valente