# $Revision$ on $Date$
# The above revision line needs to be the first line for ttkrf files
# Copyright (c) 2006 Ansys Inc

dataEntryDialog createMeshSubsetDEZ "Create Subset" 
  #dropDownEntry createMeshSubsetName "Subset" MeshSubsetList name FALSE
  textEntry createMeshSubsetName "Subset Name" name TEXT
  exclusiveGroup createMeshSubsetSelect "Create Subset" "Method" 6 ICON
    exclusiveGroupItem createMeshSubSel "Create Subset by Selection" SS_CreateSelect$icon_size2.gif
    frame createMeshSubSelLabel "Create Subset by Selection"
	entityChooser createMeshSubsetPick "Entities" entityList ELEM ANY

#	checkItem createMeshSubPick0d "Nodes" select_mesh_0d NULL
#	checkItem createMeshSubPick1d "1D elems" select_mesh_1d NULL
#	checkItem createMeshSubPick2d "2D elems" select_mesh_2d NULL
#	checkItem createMeshSubPick3d "3D elems" select_mesh_3d NULL
    frame END
    exclusiveGroupItem END
    exclusiveGroupItem createMeshSubPos "Create Subset near Position" SS_CreateXYZ$icon_size2.gif
    frame createMeshSubPosLabel "Create Subset near Position"
	#textEntry createMeshSubLocation "Location" location TEXT
	entityChooser createMeshSubLocation "Location" location POINTORXYZ 1 xyz
	checkItem createMeshSubLoc0d "Nodes" select_mesh_0d NULL
	checkItem createMeshSubLoc1d "1d elems" select_mesh_1d NULL
	checkItem createMeshSubLoc2d "2d elems" select_mesh_2d NULL
	checkItem createMeshSubLoc3d "3d elems" select_mesh_3d NULL
    frame END
    exclusiveGroupItem END
    exclusiveGroupItem createMeshSubNum "Create Subset By Element Number" SS_CreateByElemNo$icon_size2.gif
	exclusiveGroup createSubNumT "Create Subset By Number" "Method" 2 DROPDOWN
	    exclusiveGroupItem createSubNumEl "Element Numbers"
		textEntry createMeshSubEnum "Element numbers" elem_numbers NUM
	    exclusiveGroupItem END
	    exclusiveGroupItem createSubNumN "Attached to node numbers"
		textEntry createMeshSubNnum "Node numbers" node_numbers NUM
	    exclusiveGroupItem END
	exclusiveGroup END
    exclusiveGroupItem END
    exclusiveGroupItem createMeshSubBox "Create Subset in Region" SS_CreateRegion$icon_size2.gif
    frame createMeshSubBoxLabel "Create Subset in Region"
	textEntry createMeshSubBoxminX "Min X" minx TEXT
	textEntry createMeshSubBoxminY "Min Y" miny TEXT
	textEntry createMeshSubBoxminZ "Min Z" minz TEXT
	textEntry createMeshSubBoxmaxX "Max X" maxx TEXT
	textEntry createMeshSubBoxmaxY "Max Y" maxy TEXT
	textEntry createMeshSubBoxmaxZ "Max Z" maxz TEXT
	checkItem  createMeshSubBoxMethod "Include partially enclosed" BoxFlag NULL

	checkItem createMeshSubBox0d "Nodes" select_mesh_0d NULL
	checkItem createMeshSubBox1d "1d elems" select_mesh_1d NULL
	checkItem createMeshSubBox2d "2d elems" select_mesh_2d NULL
	checkItem createMeshSubBox3d "3d elems" select_mesh_3d NULL

    frame END
    exclusiveGroupItem END
  exclusiveGroup END
dataEntryDialog END

dataEntryDialog modifyMeshSubsetDEZ "Modify Subset" 
  textEntry modifyMeshSubsetName "Name" name READONLY
  exclusiveGroup modifyMeshSubsetSelect "Modify Subset" "Method" 2 ICON

    exclusiveGroupItem modifyMeshSubSel "Add to Subset by Selection" SS_AddSelect$icon_size2.gif
	frame modifyMeshSubSelframe "Add to Subset by Selection"
	entityChooser modifyMeshSubsetPick "Entities" entityList ELEM ANY
	frame END
    exclusiveGroupItem END

    exclusiveGroupItem addMeshSubPos "Add To Subset near Position" SS_AddXYZ$icon_size2.gif
    frame addMeshSubPosLabel "Add To Subset near Position"
	textEntry addMeshSubLocation "Location" location TEXT
	checkItem addMeshSubLoc0d "Nodes" select_mesh_0d NULL
	checkItem addMeshSubLoc1d "1d elems" select_mesh_1d NULL
	checkItem addMeshSubLoc2d "2d elems" select_mesh_2d NULL
	checkItem addMeshSubLoc3d "3d elems" select_mesh_3d NULL
    frame END
    exclusiveGroupItem END

    exclusiveGroupItem addMeshSubNum "Add By Number" SS_AddNo$icon_size2.gif
	exclusiveGroup addSubNumT "Add By Number" "Method" 2 DROPDOWN
	    exclusiveGroupItem addSubNumEl "Element Numbers"
		textEntry addMeshSubEnum "Element numbers" elem_numbers NUM
	    exclusiveGroupItem END
	    exclusiveGroupItem addSubNumN "Attached to node numbers"
		textEntry addMeshSubNnum "Node numbers" node_numbers NUM
	    exclusiveGroupItem END
	exclusiveGroup END
    exclusiveGroupItem END

    exclusiveGroupItem addMeshSubAddSub "Add Contents of Subset" SS_AddSubset$icon_size2.gif
    frame addMeshSubAddLabel "Add Contents of Subset"
	dropDownEntry addMeshSubAddSubList "Other Subset" other_choices other_name FALSE
    frame END
    exclusiveGroupItem END

    exclusiveGroupItem addMeshSubBox "Add To Subset in Region" SS_AddRegion$icon_size2.gif
    frame addMeshSubBoxLabel "Add To Subset in Region"
	textEntry addMeshSubBoxminX "Min X" minx TEXT	
	textEntry addMeshSubBoxminY "Min Y" miny TEXT	
	textEntry addMeshSubBoxminZ "Min Z" minz TEXT	
	textEntry addMeshSubBoxmaxX "Max X" maxx TEXT	
	textEntry addMeshSubBoxmaxY "Max Y" maxy TEXT	
	textEntry addMeshSubBoxmaxZ "Max Z" maxz TEXT	
	checkItem  addMeshSubBoxMethod "Include partially enclosed" BoxFlag NULL

	checkItem addMeshSubBox0d "Nodes" select_mesh_0d NULL
	checkItem addMeshSubBox1d "1d elems" select_mesh_1d NULL
	checkItem addMeshSubBox2d "2d elems" select_mesh_2d NULL
	checkItem addMeshSubBox3d "3d elems" select_mesh_3d NULL
    frame END
    exclusiveGroupItem END

    exclusiveGroupItem modifyMeshSubRestr "Restrict to Subset by Selection" SS_Restrict$icon_size2.gif
	frame modifyMeshSubResframe "Restrict to Subset by Selection"
	entityChooser modifyMeshSubsetResPick "Entities" entityList ELEM ANY
	frame END
    exclusiveGroupItem END

    exclusiveGroupItem removeMeshSubSel "Remove from Subset by Selection" SS_MinusSelect$icon_size2.gif
	frame removeMeshSubSelframe "Remove from Subset by Selection"
	entityChooser removeMeshSubsetPick "Entities" entityList ELEM ANY
	frame END
    exclusiveGroupItem END

    exclusiveGroupItem modifyMeshSubAddLayer "Add Layer(s) to Subset" SS_AddLayer$icon_size2.gif
	frame modifyMeshSubAddLayerFrame "Add Layer(s) to Subset"
	exclusiveGroup layerMeshAddin "Flood fill option" "Method" 6 DROPDOWN
	    exclusiveGroupItem layerMeshAddinByLayer1  "Add Layer" 	    
		textEntry modifyMeshSubAddLayerNum "Num layers" number TEXT
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshAddinByLayer2  "All Attached" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshAddinByLayer3  "Same Part" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshAddinByLayer4  "To Curve" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshAddinByLayer5  "To Angle" 	    
		textEntry modifyMeshSubAddLayerAng "Angle (degrees)" angle TEXT
	    exclusiveGroupItem END
	exclusiveGroup END
	checkItem modifyMeshSubAddLayerALL "Only visible elements"  AllFlag NULL
	checkItem modifyMeshSubAddLayerVOL "Also volume elements"  VolFlag NULL
	frame END
    exclusiveGroupItem END

    exclusiveGroupItem modifyMeshSubRemoveLayer "Remove Layer(s) from Subset" SS_MinusLayer$icon_size2.gif
	frame modifyMeshSubRemoveLayerFrame "Remove Layer(s) from Subset"
	exclusiveGroup layerRemovein "Flood fill option" "Method" 6 DROPDOWN
	    exclusiveGroupItem layerMeshRemoveinByLayer1  "Remove Layer" 	    
		textEntry modifyMeshSubRemoveLayerNum "Num layers" number TEXT
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshRemoveinByLayer2  "All Attached" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshRemoveinByLayer3  "Same Part" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshRemoveinByLayer4  "To Curve" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerMeshRemoveinByLayer5  "To Angle" 	    
		textEntry modifyMeshSubRemoveLayerAng "Angle (degrees)" angle TEXT
	    exclusiveGroupItem END
	exclusiveGroup END
	checkItem modifyMeshSubRemoveLayerALL "Only visible"  AllFlag NULL	
	frame END
    exclusiveGroupItem END

    exclusiveGroupItem modifyMeshSubScanPlane "Make Scan Plane" SS_ScanPlane$icon_size2.gif
	frame modifyMeshSubScanPlaneFrame "Make Scan Plane"
	checkItem modifyMeshSubScanPlaneI "I direction" iflag NULL
	checkItem modifyMeshSubScanPlaneJ "J direction" jflag NULL
	checkItem modifyMeshSubScanPlaneK "K direction" kflag NULL
	frame END
        textButton modifyMeshSubScanPlaneIncrI "I++" "aie_mesh_subset_scan_plane_incr 1 0 0"
        textButton modifyMeshSubScanPlaneIncrJ "J++" "aie_mesh_subset_scan_plane_incr 0 1 0"
        textButton modifyMeshSubScanPlaneIncrK "K++" "aie_mesh_subset_scan_plane_incr 0 0 1"
        textButton modifyMeshSubScanPlaneDecrI "I--" "aie_mesh_subset_scan_plane_incr -1 0 0"
        textButton modifyMeshSubScanPlaneDecrJ "J--" "aie_mesh_subset_scan_plane_incr 0 -1 0"
        textButton modifyMeshSubScanPlaneDecrK "K--" "aie_mesh_subset_scan_plane_incr 0 0 -1"
    exclusiveGroupItem END

  exclusiveGroup END

  dialogSpace 1
  textButton modifyMeshClr "Clear" aie_mesh_subset_dezbut_clear
  textButton modifyMeshRes "Reset to Active Parts and Types" aie_mesh_subset_dezbut_reset
  textButton modifyMeshAct "Remove Inactive Parts and Types" aie_mesh_subset_dezbut_active

dataEntryDialog END

# -----------------------------------------------------------------------------------

dataEntryDialog createGeomSubsetDEZ "Create Subset" 
  dropDownEntry createGeomSubsetName "Subset" GeomSubsetList name FALSE
  #textEntry createGeomSubsetName "Subset Name" name TEXT
  exclusiveGroup createGeomSubsetSelect "Create Subset" "Method" 6 ICON
    exclusiveGroupItem createGeomSubSel "Create Subset by Selection" SS_CreateSelect$icon_size2.gif
    frame createGeomSubSelLabel "Create Subset by Selection"
	entityChooser createGeomSubsetPick "Entities" entityList GEOMETRY ANY

#	checkItem createGeomSubPick0d "Points" select_geom_0d NULL
#	checkItem createGeomSubPick1d "Curves" select_geom_1d NULL
#	checkItem createGeomSubPick2d "Surfaces" select_geom_2d NULL
#	checkItem createGeomSubPick3d "Volumes" select_geom_3d NULL
    frame END
    exclusiveGroupItem END
#    exclusiveGroupItem createGeomByConn "Create Subset by Connectivity" SS_CreateSubsetConn$icon_size2.gif
    exclusiveGroupItem createGeomByConn "Break Part into Subsets by Connectivity" SS_BreakPart$icon_size2.gif
	frame createGeomSubConnLabel "Break Part into Subsets by Surface Connectivity"
	    entityChooser createGeomSubConnPick "Surfaces" surfaceList SURF ANY
#	    textEntry createGeomSubConnAngO "Angle" angle NUM
#	    textEntry createGeomSubConnCurO "Max curvature" curvature NUM
	    scaleBar createGeomSubConnAng "Angle" angle 0 180 1 "aie_subset_angle_spec" 0 160 1
	    scaleBar createGeomSubConnCur "Curvature" curvature 0 360 1 "aie_subset_curvature_spec" 0 160 1
	frame END
    exclusiveGroupItem END
    
    exclusiveGroupItem createGeomSubRestr "Create Subset by Attributes" SS_ByAttrib$icon_size2.gif
    frame createGeomSubRestrLabel "Create Subset by Attributes"
    entityChooser createGeomSubRestrPick "Entities" entityList GEOMETRY ANY
	greyGroup GeomSubRestrGGMesh "Mesh Maximum Size        "
		greyGroupItem GeomSubRestrGGMeshtext " "
  			textEntry createGeomSbRestrMaxSize " " mesh_max_size_attr NUM       			
		greyGroupItem END								
	greyGroup END  
	greyGroup GeomSubRestrGGLength "Curve Length             "
		greyGroupItem GeomSubRestrGGLengthtext " "
  		textEntry createGeomSbRestrCurveLen " " curve_len_attr NUM			    			
		greyGroupItem END							
	greyGroup END  
	greyGroup GeomSubRestrGGArea "Surface Area             "
		greyGroupItem GeomSubRestrGGAreatext " "
	textEntry createGeomSbRestrSurfArea " " surf_area_attr NUM
		greyGroupItem END							
	greyGroup END  
	textButton GeomSubRestrEvalBut "Preview Subset" GeomSubRestrProc
    frame END
    exclusiveGroupItem END
 
    
#    exclusiveGroupItem createGeomSubPos "Create Subset near Position" SubsetXYZ.gif
#    frame createGeomSubPosLabel "Create Subset near Position"
#	textEntry createGeomSubLocation "Location / node num" location TEXT
#	checkItem createGeomSubLoc0d "Points" select_geom_0d NULL
#	checkItem createGeomSubLoc1d "Curves" select_geom_1d NULL
#	checkItem createGeomSubLoc2d "Surfaces" select_geom_2d NULL
#	checkItem createGeomSubLoc3d "Volumes" select_geom_3d NULL
#    frame END
#    exclusiveGroupItem END
#    exclusiveGroupItem createGeomSubBox "Create Subset in Region" SubsetBoxed.gif
#    frame createGeomSubBoxLabel "Create Subset in Region"
#	textEntry createGeomSubBoxminX "Min X" minx TEXT	
#	textEntry createGeomSubBoxminY "Min Y" miny TEXT	
#	textEntry createGeomSubBoxminZ "Min Z" minz TEXT	
#	textEntry createGeomSubBoxmaxX "Max X" maxx TEXT	
#	textEntry createGeomSubBoxmaxY "Max Y" maxy TEXT	
#	textEntry createGeomSubBoxmaxZ "Max Z" maxz TEXT	
#	checkItem  createGeomSubBoxMethod "Include partially enclosed" BoxFlag NULL
#
#	checkItem createGeomSubBox0d "Points" select_geom_0d NULL
#	checkItem createGeomSubBox1d "Curves" select_geom_1d NULL
#	checkItem createGeomSubBox2d "Surfaces" select_geom_2d NULL
#	checkItem createGeomSubBox3d "Volumes" select_geom_3d NULL
#
#    frame END
#    exclusiveGroupItem END
  exclusiveGroup END
dataEntryDialog END

dataEntryDialog modifyGeomSubsetDEZ "Modify Subset" 
  textEntry modifyGeomSubsetName "Name" name READONLY
  exclusiveGroup modifyGeomSubsetSelect "Modify Subset" "Method" 2 ICON
    exclusiveGroupItem modifyGeomSubSel "Add to Subset by Selection" SS_AddSelect$icon_size2.gif
	frame modifyGeomSubSelframe "Add to Subset by Selection"
	entityChooser modifyGeomSubsetPick "Entities" entityList GEOMETRY ANY
#	checkItem modifyGeomSubPick0d "Points" select_geom_0d NULL
#	checkItem modifyGeomSubPick1d "Curves" select_geom_1d NULL
#	checkItem modifyGeomSubPick2d "Surfaces" select_geom_2d NULL
#	checkItem modifyGeomSubPick3d "Volumes" select_geom_3d NULL
	frame END
    exclusiveGroupItem END
    exclusiveGroupItem removeGeomSubSel "Remove from Subset by Selection" SS_MinusSelect$icon_size2.gif
	frame removeGeomSubSelframe "Remove from Subset"
	exclusiveGroup removeGeomOptions "Remove options" "Method" 6 DROPDOWN
	    exclusiveGroupItem removeGeomRemoveBySel "By Selection"
	        entityChooser removeGeomSubsetPick "Entities" entityList GEOMETRY ANY
	    exclusiveGroupItem END
	    exclusiveGroupItem removeGeomSubsetLayer  "Remove Layer" 	    
		textEntry removeGeomLayerNum "Num layers" number TEXT
	    exclusiveGroupItem END
	exclusiveGroup END
#	checkItem removeGeomSubPick0d "Points" select_geom_0d NULL
#	checkItem removeGeomSubPick1d "Curves" select_geom_1d NULL
#	checkItem removeGeomSubPick2d "Surfaces" select_geom_2d NULL
#	checkItem removeGeomSubPick3d "Volumes" select_geom_3d NULL
	frame END
    exclusiveGroupItem END
    exclusiveGroupItem modifyGeomSubAddLayer "Add Layer(s) to Subset" SS_AddLayer$icon_size2.gif
	frame modifyGeomSubAddLayerFrame "Add Layer(s) to Subset"
	exclusiveGroup layerGeomAddin "Flood fill option" "Method" 6 DROPDOWN
	    exclusiveGroupItem layerGeomAddinByLayer1  "Add Layer" 	    
		textEntry modifyGeomSubAddLayerNum "Num layers" number TEXT
	    exclusiveGroupItem END
	    exclusiveGroupItem layerGeomAddinByLayer2  "All Attached" 	    
	    exclusiveGroupItem END
	    exclusiveGroupItem layerGeomAddinByLayer3  "To Angle" 	    
		textEntry modifyGeomSubAddLayerAng "Angle (degrees)" angle TEXT
	    exclusiveGroupItem END
	    exclusiveGroupItem layerGeomAddinByLayer4  "At one side" 
	        entityChooser modifyGeomSubsetSidePick "Entity" entitySideList GEOMETRY 1 
	    exclusiveGroupItem END
	exclusiveGroup END
	frame END
    exclusiveGroupItem END
#    exclusiveGroupItem modifyGeomSubRemoveLayer "Remove Layer(s) from Subset" SubtractSubLayer.gif
#	frame modifyGeomSubRemoveLayerFrame "Remove Layer(s) from Subset"
#	exclusiveGroup layerGeomRemovein "Flood fill option" "Method" 6 DROPDOWN
#	    exclusiveGroupItem layerGeomRemoveinByLayer1  "Remove Layer" 	    
#		textEntry modifyGeomSubRemoveLayerNum "Num layers" number TEXT
#	    exclusiveGroupItem END
#	    exclusiveGroupItem layerGeomRemoveinByLayer2  "All Attached" 	    
#	    exclusiveGroupItem END
#	exclusiveGroup END
#	checkItem modifyGeomSubRemoveLayerALL "Only visible"  AllFlag NULL	
#	frame END
#    exclusiveGroupItem END
  exclusiveGroup END
dataEntryDialog END


# -----------------------------------------------------------------------------------

dataEntryDialog createBlockSubsetDEZ "Create Subset" 
    dropDownEntry createBlockSubsetName "Subset" BlockSubsetList name FALSE
    dropDownEntry createBlockSubsetType "Type" TypeSubsetList stype FALSE
    frame createBlockSubframe "Create Subset by Selection"
	    entityChooser createBlockSubsetPick "Blocks" blockList  HEX_BLOCK ANY NULL "Select the block(s) to create subset"
	    entityChooser createFaceSubsetPick "Faces" faceList  HEX_FACE ANY NULL "Select the face(s) to create subset"
	    entityChooser createEdgeSubsetPick "Edges" edgeList  HEX_EDGE ANY new_format "Select the edge(s) to create subset"
        entityChooser createVertexSubsetPick "Vertices" vertexList  HEX_VERTEX ANY node_numbers "Select the vertices to create subset"
  frame END
dataEntryDialog END

dataEntryDialog modifyBlockSubsetDEZ "Modify Subset" 
    textEntry modifyBlockSubsetName "Name" name READONLY
    exclusiveGroup modifyBlockSubsetSelect "Modify Subset" "Method" 2 ICON
    exclusiveGroupItem modifyBlockSubSel "Add to Subset by Selection" SS_AddSelect$icon_size2.gif
	frame modifyBlockSubSelframe "Add to Subset by Selection"
		entityChooser modifyBlockSubsetPick "Blocks" blockList HEX_BLOCK ANY NULL "Select the block(s) to add to subset"
	    entityChooser modifyFaceSubsetPick "Faces" faceList  HEX_FACE ANY NULL "Select the face(s) to add to subset"
	    entityChooser modifyEdgeSubsetPick "Edges" edgeList  HEX_EDGE ANY new_format "Select the edge(s) to add to subset"
        entityChooser modifyVertexSubsetPick "Vertices" vertexList  HEX_VERTEX ANY node_numbers "Select the vertices to add to subset"
	frame END
    exclusiveGroupItem END
    exclusiveGroupItem removeBlockSubSel "Remove from Subset by Selection" SS_MinusSelect$icon_size2.gif
	frame removeBlockSubSelframe "Remove from Subset by Selection"
		entityChooser removeBlockSubsetPick "Blocks" blockList HEX_BLOCK ANY NULL "Select the block(s) to remove from  subset"
	    entityChooser removeFaceSubsetPick "Faces" faceList  HEX_FACE ANY NULL "Select the face(s) to remove from subset"
	    entityChooser removeEdgeSubsetPick "Edges" edgeList  HEX_EDGE ANY new_format "Select the edge(s) to remove from subset"
        entityChooser removeVertexSubsetPick "Vertices" vertexList  HEX_VERTEX ANY node_numbers "Select the vertices to remove from subset"
	frame END
    exclusiveGroupItem END   
  exclusiveGroup END
dataEntryDialog END

