Browse Source

12.2 11:41

lzy 1 year ago
parent
commit
7b728647fd

BIN
data/1/2/PlanePlate.ply


File diff suppressed because it is too large
+ 1684 - 0
data/1/2/PlanePlate.stp


+ 1 - 0
data/1/mat.db.json

@@ -0,0 +1 @@
+{"materials":{},"frozen_list":[]}

File diff suppressed because it is too large
+ 1 - 0
data/1/proj.db.json


+ 1 - 0
data/3/mat.db.json

@@ -0,0 +1 @@
+{"materials":{},"frozen_list":[]}

+ 1 - 0
data/3/proj.db.json

@@ -0,0 +1 @@
+{"current":"","projects":{}}

File diff suppressed because it is too large
+ 130 - 0
data/brep/face1.brep


+ 130 - 0
data/brep/face16.brep

@@ -0,0 +1,130 @@
+DBRep_DrawableShape
+
+CASCADE Topology V1, (c) Matra-Datavision
+Locations 0
+Curve2ds 0
+Curves 4
+7 0 0  1 2 2  656 400.59999999899998 1.1000000007299999  100 400.59999999899998 1.1000000007299999 
+ -556 2 0 2
+7 0 0  1 2 2  100 400.60000000000002 29.199999999399999  100 400.59999999899998 1.1000000007299999 
+ 0 2 28.09999999867 2
+7 0 0  1 2 2  656 400.60000000000002 29.199999999399999  100 400.60000000000002 29.199999999399999 
+ -556 2 0 2
+7 0 0  1 2 2  656 400.59999999899998 1.1000000007299999  656 400.60000000000002 29.199999999399999 
+ 0 2 28.09999999867 2
+Polygon3D 0
+PolygonOnTriangulations 8
+2 1 2 
+p 16.4000000050025 1 -556 0 
+2 4 3 
+p 16.4000000050025 1 -556 0 
+2 3 2 
+p 2.810000019867 1 0 28.09999999867 
+2 5 6 
+p 2.810000019867 1 0 28.09999999867 
+2 1 2 
+p 16.4000000050025 1 -556 0 
+2 4 3 
+p 16.4000000050025 1 -556 0 
+2 1 4 
+p 2.810000019867 1 0 28.09999999867 
+2 4 5 
+p 2.810000019867 1 0 28.09999999867 
+Surfaces 5
+1 44.340000000000003 400.60000000000002 -1.7699999991369999 0 1 0 0 -0 1 1 0 -0 
+1 44.340000000000003 419.58000000009997 1.1000000000000001 0 0 1 1 0 -0 -0 1 0 
+1 100 -45.659999999999997 -4.1699999999599999 1 0 0 -0 0 1 0 -1 0 
+1 44.340000000000003 398.81999999999999 29.199999999999999 0 0 -1 -1 0 -0 0 1 0 
+1 656 -45.660000000502698 -4.1699999999999999 -1 0 0 0 0 -1 -0 -1 -0 
+Triangulations 5
+4 2 1 13.900000005
+656 400.599999999 1.10000000073 100 400.599999999 1.10000000073 100 400.6 29.1999999994 656 400.6 29.1999999994 2.869999999867 611.66 2.869999999867 55.66 30.969999998537 55.66 30.969999998537 611.66 1 2 3 4 1 3 
+4 2 1 13.900000005
+100 417.8 1.10000000032 656 417.8 1.09999999925 100 400.599999999 1.10000000073 656 400.599999999 1.10000000073 55.66 -1.78000000009996 611.66 -1.78000000009996 55.66 -18.9800000011 611.66 -18.9800000011 2 1 3 2 3 4 
+8 6 1 2.14250001996613
+100 456 31.1999999996 100 456 0.900000000000001 100 417.8 31.1999999996 100 417.8 29.2000000009 100 400.6 29.1999999994 100 400.599999999 1.10000000073 100 417.8 1.10000000032 100 417.800000001 0.9 35.36999999956 -501.66 5.06999999996 -501.66 35.36999999956 -463.46 33.37000000086 -463.46 33.36999999936 -446.26 5.27000000069 -446.259999999 5.27000000028 -463.46 5.06999999996 -463.460000001 7 8 2 4 2 1 4 7 2 3 4 1 5 6 7 5 7 4 
+4 2 1 13.900000005
+656 400.6 29.1999999994 100 400.6 29.1999999994 100 417.8 29.2000000009 656 417.8 29.2000000009 -611.66 1.78000000000003 -55.66 1.78000000000003 -55.66 18.98 -611.66 18.98 3 1 2 3 4 1 
+8 6 1 2.14250001996275
+656 456 0.9 656 417.800000001 0.9 656 417.8 1.09999999925 656 400.599999999 1.10000000073 656 400.6 29.1999999994 656 417.8 29.2000000009 656 417.8 31.2 656 456 31.2 -5.07 -501.660000000503 -5.07 -463.460000001503 -5.26999999925 -463.460000000503 -5.27000000073 -446.259999999503 -33.3699999994 -446.260000000503 -33.3700000009 -463.460000000503 -35.37 -463.460000000503 -35.37 -501.660000000503 6 7 8 6 8 1 3 5 6 3 6 1 2 3 1 4 5 3 
+
+TShapes 10
+Ve
+1e-07
+656 400.599999999 1.10000000073
+0 0
+
+0101101
+*
+Ve
+1e-07
+100 400.599999999 1.10000000073
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  1 0 -556 0
+4 C0 1 0 2 0
+6  1 1 0
+6  2 2 0
+0
+
+0101000
++10 0 -9 0 *
+Ve
+1e-07
+100 400.6 29.1999999994
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  2 0 0 28.09999999867
+4 C0 1 0 3 0
+6  3 1 0
+6  4 3 0
+0
+
+0101000
++7 0 -9 0 *
+Ve
+1e-07
+656 400.6 29.1999999994
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  3 0 -556 0
+4 C0 4 0 1 0
+6  5 4 0
+6  6 1 0
+0
+
+0101000
++5 0 -7 0 *
+Ed
+ 1e-07 1 1 0
+1  4 0 0 28.09999999867
+4 C0 1 0 5 0
+6  7 1 0
+6  8 5 0
+0
+
+0101000
++10 0 -5 0 *
+Wi
+
+0101100
++8 0 -6 0 -4 0 -3 0 *
+Fa
+0  1e-07 1 0
+2  1
+0101000
++2 0 *
+
++1 0 

File diff suppressed because it is too large
+ 63 - 417
data/brep/face38.brep


+ 130 - 0
data/brep/face42.brep

@@ -0,0 +1,130 @@
+DBRep_DrawableShape
+
+CASCADE Topology V1, (c) Matra-Datavision
+Locations 0
+Curve2ds 0
+Curves 4
+7 0 0  1 2 2  656 57 0.90000000000000002  100 57 0.90000000000000002 
+ 0 2 556 2
+7 0 0  1 2 2  100 57 0.90000000000000002  100 0 0.90000000000299896 
+ -57 2 0 2
+7 0 0  1 2 2  100 0 0.90000000000299896  656 -2.5627350708883799e-11 0.90000000000299996 
+ -556 2 0 2
+7 0 0  1 2 2  656 57 0.90000000000000002  656 -2.5627350708883799e-11 0.90000000000299996 
+ -57 2 0 2
+Polygon3D 0
+PolygonOnTriangulations 8
+2 4 3 
+p 16.4000000050025 1 0 556 
+2 1 2 
+p 16.4000000050025 1 0 556 
+2 2 3 
+p 5.70000002 1 -57 0 
+2 2 4 
+p 5.70000002 1 -57 0 
+2 3 1 
+p 16.4000000050025 1 -556 0 
+2 3 4 
+p 16.4000000050025 1 -556 0 
+2 1 4 
+p 5.70000002000256 1 -57 0 
+2 1 2 
+p 5.70000002000256 1 -57 0 
+Surfaces 5
+1 44.339999999900002 -45.659999999999997 0.90000000000000002 0 0 1 1 0 -0 -0 1 0 
+1 44.340000000000003 57 34.289999999999999 0 -1 0 0 -0 -1 1 0 0 
+1 100 -45.659999999999997 -4.1699999999599999 1 0 0 -0 0 1 0 -1 0 
+1 44.339999999900002 0 -1.1400000000003001 0 -1 0 0 -0 -1 1 0 0 
+1 656 -45.660000000502698 -4.1699999999999999 -1 0 0 0 0 -1 -0 -1 -0 
+Triangulations 5
+4 2 1 13.900000005
+656 57 0.9 100 57 0.9 100 0 0.900000000002999 656 -2.56273507088838e-11 0.900000000003 611.6600000001 102.66 55.6600000001 102.66 55.6600000001 45.66 611.6600000001 45.6599999999744 1 2 3 1 3 4 
+4 2 1 13.900000005
+656 57 31.2 100 57 31.1999999996 100 57 0.9 656 57 0.9 3.09 611.66 3.0900000004 55.66 33.39 55.66 33.39 611.66 4 1 2 4 2 3 
+4 2 1 4.36500001997993
+100 57 31.1999999996 100 57 0.9 100 0 31.1999999996 100 0 0.900000000002999 35.36999999956 -102.66 5.06999999996 -102.66 35.36999999956 -45.66 5.069999999963 -45.66 4 2 1 3 4 1 
+4 2 1 13.900000005
+656 -2.56273507088838e-11 0.900000000003 656 0 -0.9 100 0 0.900000000002999 100 0 -0.9 -2.0400000000033 611.6600000001 -0.2400000000003 611.6600000001 -2.0400000000033 55.6600000001 -0.2400000000003 55.6600000001 2 1 3 2 3 4 
+4 2 1 4.36500002001199
+656 57 0.9 656 -2.56273507088838e-11 0.900000000003 656 -4.57021087641e-10 31.2 656 57 31.2 -5.07 -102.660000000503 -5.070000000003 -45.6600000004771 -35.37 -45.6600000000457 -35.37 -102.660000000503 2 3 4 2 4 1 
+
+TShapes 10
+Ve
+1e-07
+656 57 0.9
+0 0
+
+0101101
+*
+Ve
+1e-07
+100 57 0.9
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  1 0 0 556
+4 C0 2 0 1 0
+6  1 2 0
+6  2 1 0
+0
+
+0101000
++10 0 -9 0 *
+Ve
+1e-07
+100 0 0.900000000002999
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  2 0 -57 0
+4 C0 1 0 3 0
+6  3 1 0
+6  4 3 0
+0
+
+0101000
++9 0 -7 0 *
+Ve
+1e-07
+656 -2.56273507088838e-11 0.900000000003
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  3 0 -556 0
+4 C0 4 0 1 0
+6  5 4 0
+6  6 1 0
+0
+
+0101000
++7 0 -5 0 *
+Ed
+ 1e-07 1 1 0
+1  4 0 -57 0
+4 C0 1 0 5 0
+6  7 1 0
+6  8 5 0
+0
+
+0101000
++10 0 -5 0 *
+Wi
+
+0101100
++8 0 +6 0 +4 0 -3 0 *
+Fa
+0  1e-07 1 0
+2  1
+0101000
++2 0 *
+
++1 0 

+ 130 - 0
data/brep/face44.brep

@@ -0,0 +1,130 @@
+DBRep_DrawableShape
+
+CASCADE Topology V1, (c) Matra-Datavision
+Locations 0
+Curve2ds 0
+Curves 4
+7 0 0  1 2 2  656 285 0.90000000000000002  100 285 0.90000000000000002 
+ 0 2 556 2
+7 0 0  1 2 2  100 285 0.90000000000000002  100 189.800000001 0.90000000000000002 
+ -285 2 -189.800000001 2
+7 0 0  1 2 2  100 189.800000001 0.90000000000000002  656 189.800000001 0.90000000000000002 
+ 0 2 556 2
+7 0 0  1 2 2  656 285 0.90000000000000002  656 189.800000001 0.90000000000000002 
+ -285 2 -189.800000001 2
+Polygon3D 0
+PolygonOnTriangulations 8
+2 4 3 
+p 16.4000000050025 1 0 556 
+2 1 2 
+p 16.4000000050025 1 0 556 
+2 2 3 
+p 9.5200000199 1 -285 -189.800000001 
+2 2 8 
+p 9.5200000199 1 -285 -189.800000001 
+2 1 2 
+p 16.4000000050025 1 0 556 
+2 3 4 
+p 16.4000000050025 1 0 556 
+2 1 4 
+p 9.5200000199 1 -285 -189.800000001 
+2 1 2 
+p 9.5200000199 1 -285 -189.800000001 
+Surfaces 5
+1 44.339999999900002 -45.659999999999997 0.90000000000000002 0 0 1 1 0 -0 -0 1 0 
+1 44.340000000000003 285 34.289999999999999 0 -1 0 0 -0 -1 1 0 0 
+1 100 -45.659999999999997 -4.1699999999599999 1 0 0 -0 0 1 0 -1 0 
+1 44.340000000000003 189.80000000000001 0.21999999996799999 0 1 0 0 -0 1 1 0 -0 
+1 656 -45.660000000502698 -4.1699999999999999 -1 0 0 0 0 -1 -0 -1 -0 
+Triangulations 5
+4 2 1 13.900000005
+656 285 0.9 100 285 0.9 100 189.800000001 0.9 656 189.800000001 0.9 611.6600000001 330.66 55.6600000001 330.66 55.6600000001 235.460000001 611.6600000001 235.460000001 4 2 3 1 2 4 
+4 2 1 13.900000005
+656 285 31.2 100 285 31.1999999996 100 285 0.9 656 285 0.9 3.09 611.66 3.0900000004 55.66 33.39 55.66 33.39 611.66 4 1 2 4 2 3 
+8 6 1 3.56750001996613
+100 285 31.1999999996 100 285 0.9 100 189.8 31.1999999996 100 189.8 29.2000000009 100 172.6 29.1999999994 100 172.599999999 1.10000000073 100 189.8 1.10000000032 100 189.800000001 0.9 35.36999999956 -330.66 5.06999999996 -330.66 35.36999999956 -235.46 33.37000000086 -235.46 33.36999999936 -218.26 5.27000000069 -218.259999999 5.27000000028 -235.46 5.06999999996 -235.460000001 7 8 2 4 2 1 4 7 2 3 4 1 5 6 7 5 7 4 
+4 2 1 13.900000005
+100 189.800000001 0.9 656 189.800000001 0.9 100 189.8 1.10000000032 656 189.8 1.09999999925 0.680000000032 55.66 0.680000000032 611.66 0.880000000352 55.66 0.879999999282 611.66 4 2 1 4 1 3 
+8 6 1 3.56750001996275
+656 285 0.9 656 189.800000001 0.9 656 189.8 1.09999999925 656 172.599999999 1.10000000073 656 172.6 29.1999999994 656 189.8 29.2000000009 656 189.8 31.2 656 285 31.2 -5.07 -330.660000000503 -5.07 -235.460000001503 -5.26999999925 -235.460000000503 -5.27000000073 -218.259999999503 -33.3699999994 -218.260000000503 -33.3700000009 -235.460000000503 -35.37 -235.460000000503 -35.37 -330.660000000503 6 7 8 6 8 1 3 5 6 3 6 1 2 3 1 4 5 3 
+
+TShapes 10
+Ve
+1e-07
+656 285 0.9
+0 0
+
+0101101
+*
+Ve
+1e-07
+100 285 0.9
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  1 0 0 556
+4 C0 2 0 1 0
+6  1 2 0
+6  2 1 0
+0
+
+0101000
++10 0 -9 0 *
+Ve
+1e-07
+100 189.800000001 0.9
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  2 0 -285 -189.800000001
+4 C0 1 0 3 0
+6  3 1 0
+6  4 3 0
+0
+
+0101000
++9 0 -7 0 *
+Ve
+1e-07
+656 189.800000001 0.9
+0 0
+
+0101101
+*
+Ed
+ 1e-07 1 1 0
+1  3 0 0 556
+4 C0 4 0 1 0
+6  5 4 0
+6  6 1 0
+0
+
+0101000
++7 0 -5 0 *
+Ed
+ 1e-07 1 1 0
+1  4 0 -285 -189.800000001
+4 C0 1 0 5 0
+6  7 1 0
+6  8 5 0
+0
+
+0101000
++10 0 -5 0 *
+Wi
+
+0101100
++8 0 +6 0 +4 0 -3 0 *
+Fa
+0  1e-07 1 0
+2  1
+0101000
++2 0 *
+
++1 0 

File diff suppressed because it is too large
+ 1152 - 1152
data/guass/guass.txt


+ 1 - 0
data/mat.db.json

@@ -0,0 +1 @@
+{"materials":{},"frozen_list":[]}

+ 1 - 1
data/material.txt

@@ -1 +1 @@
-整体 7.8 1000 0.3 207 1
+整体 7.8 1000000 0.3 207 1

+ 7 - 25
data/preFiles.txt

@@ -1,50 +1,32 @@
 结构静力学前处理文件
 
 $ address
-D:/dcip1/comx_sdk.node/unit/hypermesh/data/work1/proj1/PlanePlate.stp
+D:/dcip1/comx_sdk.node/unit/hypermesh/data/1/2/PlanePlate.stp
 
 $ materials
-7.8 1000 0.3 207
+7.8 1000000 0.3 207
 
 $ BPP
 4 0
 
 $ brepFiles
-D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face100025.brep
-D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face100009.brep
-D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face100043.brep
-D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face100031.brep
+D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face1.brep
+D:/dcip1/comx_sdk.node/unit/hypermesh/data/brep/face10.brep
 
 $ forceFace id xn yn zn xr yr zr
-100025 100 0 0 100 0 0
+1 100 0 0 0 0 0
 
 $ fixFace id xn yn zn xr yr zr
-100031 1 1 1 1 1 1
-
-$ mat poi radius len seg Beam
-1e6 0.3 2 10 6
-
-$ x y z Beam
-0.000000 0.000000 0.000000
-166.666667 83.333333 0.000000
-333.333333 166.666667 0.000000
-500.000000 250.000000 0.000000
-666.666667 333.333333 0.000000
-833.333333 416.666667 0.000000
-1000.000000 500.000000 0.000000
+10 1 1 1 1 1 1
 
 $ con ids id xd yd zd xr yr zr Beam
 
 $ arrow ids id xn yn zn xr yr zr Beam
 
 $ x y z X Y Z stiffness_x stiffness_y stiffness_z type1 type2 Spring
-50.111691 100.000000 30.000000 50.111691 100.000000 200.000000 0 1 0 P P
 
 $ type id1 id x1 y1 z1 type id1 id x2 y2 z2 xn yn zn xr yr zr Connect
-P 0 0 50.111691 100.000000 200.000000 P 0 1 50.111691 100.000000 300.000000 0 1 0 0 1 0
 
 $ arrow type id ids xn yn zn xr yr zr RB3
-P 0 2 100 0 0 0 0 0
 
-$ fix type id ids xn yn zn xr yr zr RB3
-P 0 0 1 1 1 1 1 1
+$ fix type id ids xn yn zn xr yr zr RB3

+ 1 - 0
data/proj.db.json

@@ -0,0 +1 @@
+{"current":"proj1","projects":{"proj1":{"path":"D:\\dcip1\\comx_sdk.node\\unit\\hypermesh\\data\\proj1","model":{"step":"unimported","buf_ply":{}},"workCondition":{"current":"","conditions":{}}}}}

BIN
js.zip


+ 33 - 5
js/boundary_constraint_pane.js

@@ -41,6 +41,7 @@ function OnException(err) {
 //////////////////////////////////////////////////////////////////////////
 // Callback Functions.
 // 641a254c-ef3e-11ea-bc8a-379bb908bdd7
+/*
 function OnGetFaceName(){
         const str = unit.form.mainfrm.OnGetFaceName();
         
@@ -55,6 +56,28 @@ function OnGetFaceName(){
         const centerMatch = str.match(centerRegex);
         const centerCoords = centerMatch? centerMatch[1].split(' ').map(x => x.trim()) : null;
         
+        ui.type.value = typeInfo;
+        ui.xc.value = centerCoords[0];
+        ui.yc.value = centerCoords[1];
+        ui.zc.value = centerCoords[2];
+}*/
+
+function OnGetFaceName(){
+        const str = unit.form.mainfrm.OnGetFaceName();
+        console.log(str);
+        // 匹配type对应内容的正则表达式,以type:开头,后面跟着非冒号的内容直到遇到空格或者字符串结束
+        const typeRegex = /type:([^point]+)/;
+        // 匹配center坐标对应内容的正则表达式
+        //const centerRegex = /point:([\d. ]+)/;
+
+        const typeMatch = str.match(typeRegex);
+        const typeInfo = typeMatch? typeMatch[1] : null;
+
+        //const centerMatch = str.match(centerRegex);
+        //const centerCoords = centerMatch? centerMatch[1].split(' ').map(x => x.trim()) : null;
+        const match = str.match(/point:([-\d.]+)\s+([-\d.]+)\s+([-\d.]+)/);
+        const centerCoords = match.slice(1, 4); 
+        
         ui.type.value = typeInfo;
         ui.xc.value = centerCoords[0];
         ui.yc.value = centerCoords[1];
@@ -356,7 +379,7 @@ function OnConnect(){
         let name1 = unit.form.mainfrm.OnConnects(ui.cxs.value, ui.cys.value, ui.czs.value, ui.cxe.value, ui.cye.value, ui.cze.value, ui.cr.value, ui.cg.value, ui.cb.value, name);
      
         name1 = name1.replace(temp, "");
-        console.log(name1);
+        //console.log(name1);
         unit.form.mainfrm.OnChangePicture(3, 2);
         let color = unit.form.tree.getRandomHexColor();
         let Load = {
@@ -499,7 +522,7 @@ function OnSpring(){
                 "unique":name
                 
         };
-        console.log(name1);
+        //console.log(name1);
         if(ui.stypes.value === '--' || ui.stypee.value === '--') {
                 unit.form.mainfrm.OnCueline('未添加弹簧坐标', 'green');
         }else{
@@ -564,7 +587,7 @@ function OnBeam(){
                 "color":color,
                 "unique":name
         };
-        console.log(name1);
+        //console.log(name1);
         unit.form.tree.CreateBoundary(Load, name1);
         unit.form.mainfrm.OnCueline('您完成了梁约束的添加!', 'green');
 }
@@ -598,7 +621,7 @@ function OnStart(){
 
 function OnChangeMenu(){
         ui.stack_menu.index = parseFloat(ui.misConstraints.index);
-        console.log(ui.no_limit_constraint.index === 1);
+        // console.log(ui.no_limit_constraint.index === 1);
         //console.log(ui.limit_constraint.index);
 
         if(ui.stack_menu.index === 3){
@@ -623,7 +646,7 @@ function OnChangeConstraint(){
         }
 }
 function ChangeRadiobutton(idx) {
-        ui.limit_constraint.index = parseFloat(idx);
+        ui.limit_constraint.index = parseInt(idx);
 }
 //The message corresponding callback executed by the docker pane.
 // when calling [side_pane].fireEvent(type,para) in the main form.
@@ -634,6 +657,11 @@ function OnParentDockerMessage(type, para) {
 // Utils Functions.
 // 6c165ad6-ef3e-11ea-987c-b761a131c2fe
 
+CW_DeclareVariable("idx",
+        val => {             
+                ui.limit_constraint.index = val;            
+        }, () => {});
+
 CW_DeclareVariable("pb_x",
         val => {             
                 ui.pb_x.value = val;

+ 9 - 2
js/boundary_force_pane.js

@@ -123,7 +123,7 @@ function OnModify(idx){
 }
 
 function OnValueChange2(){
-        if(ui.fa_x.value === '' || ui.fa_y.value === '' || ui.fa_z.value === '' || ui.fa_xr.value === '' || ui.fa_yr.value === '' || ui.fa_zr.value === '' || parseFloat(ui.fa_radius.value) <= 0){
+        if(ui.fa_x.value === '' || ui.fa_y.value === '' || ui.fa_z.value === '' || ui.fa_xr.value === '' || ui.fa_yr.value === '' || ui.fa_zr.value === ''){
                 unit.form.mainfrm.OnChangePicture(3, 3);
                 //unit.form.mainfrm.OnCueline('<h4 style="font-family:arial;color: red;font-size:20px;">非常抱歉,您输入的数据不在范围内</h4>');
                 unit.form.mainfrm.OnCueline('您输入的数据不在范围内!!!', 'red');
@@ -257,7 +257,9 @@ function OnArrow(){
         }
         
 }
-
+function OnChangeIndex(idx) {
+        ui.force_arr.index = parseInt(idx);
+}
 function OnChangeForce(idx){
         ui.stack_force.index = parseInt(idx);
 }
@@ -284,6 +286,11 @@ function PUI(cb) {
         });
 */
 
+CW_DeclareVariable("idx",
+        val => {             
+                ui.force_arr.index = val;               
+        }, () => {});
+
 CW_DeclareVariable("index",
         val => {             
                 ui.stack_force.index = val;               

+ 12 - 1
js/mainfrm_pane.js

@@ -148,7 +148,6 @@ function OnloadModel(path) {
 //清除canvas
 function ClearCanvas() {
         ui.canvas.db = null;
-        comx.occore.Clear();
 }
 //设置材料参数界面
 function setMaterial(material) {
@@ -307,6 +306,14 @@ function OnHide(){
         comx.ply.hideShow(vtkContext.Interface(), workData, "mark", "mark", true);
 }*/
 
+function OnForceChange(idx){
+        ui.cw_boundary_force_24.idx = idx;
+}
+
+function OnConChange(idx){
+        ui.cw_boundary_constraint_25.idx = idx;
+}
+
 function OnCut(x, y, z, xn, yn, zn){
         comx.ply.cutters(vtkContext.Interface(), postManage, x, y, z, xn, yn, zn);
 }
@@ -806,6 +813,10 @@ function menu(Idx) {
         ui.stack_menu.index = parseInt(Idx);
 }
 
+function OnChangeIndex(idx){
+        ui.geo.index = idx;
+}
+
 function changeConstrain(index1, index2){
         if(index1 === 1){
                 ui.cw_boundary_constraint_25.change1 = index2;

File diff suppressed because it is too large
+ 60 - 36
js/tree_pane.js


+ 6 - 0
js/workArea_pane.js

@@ -37,9 +37,14 @@ function OnException(err) {
 //////////////////////////////////////////////////////////////////////////
 // Callback Functions.
 // 641a254c-ef3e-11ea-bc8a-379bb908bdd7
+
 var fname = '';
 var name = '';
 function OnConfirm(){
+        if(ui.work_name.value === '') {
+                unit.form.mainfrm.OnCueline('未输入工作区名字!', 'red');
+                return;
+        }
         model.checkPath(ui.floder.value, (directories) =>{
                 if(directories.includes(ui.work_name.value)) {
                         unit.form.mainfrm.OnCueline('您创建的工作区已存在!', 'red');
@@ -49,6 +54,7 @@ function OnConfirm(){
                       
                 }
         });
+        
         unit.form.mainfrm.OnCueline('成功创建工作区!', 'green');
         //控制流程
         model.global_ctrl[0] = true;

BIN
kul.zip


+ 1 - 1
kul/boundary_force.kul

@@ -100,7 +100,7 @@
           <property name="scroll_amargin">5</property>
           <property name="scroll_steps">3</property>
           <widget type="radiobutton">
-            <property name="name"/>
+            <property name="name">force_arr</property>
             <property name="label">集中载荷</property>
             <property name="group_id">1</property>
             <property name="default_group_item">true</property>

File diff suppressed because it is too large
+ 1 - 0
viewProp.db.json


+ 1 - 0
workArea.cfg.json

@@ -0,0 +1 @@
+{"current":0,"list":["D:/dcip1/comx_sdk.node/unit/hypermesh/data/1","D:\\dcip1\\comx_sdk.node\\unit\\hypermesh\\data\\3"]}