|
楼主 |
发表于 2015-3-24 15:38
|
显示全部楼层
已经搞定了,代码如下- f$ L# G9 H' L- m1 A4 o& E
$ ~$ o) g- T+ P) U+ W& G
0 T, m3 u% D ?2 o
NXOpen.Tooling.StockSizeBuilder stockSizeBuilder14 s2 F& R. A$ Q: I+ \- X, p
stockSizeBuilder1 = thePart.ToolingManager.StockSizes.CreateStocksizeBuilder() stockSizeBuilder1.StringStock = "0" j- D! b! i1 |# w! B( f! Q
stockSizeBuilder1.SizePrecision = 3 f9 v$ f5 w* M/ s3 T
stockSizeBuilder1.StockType = NXOpen.Tooling.StockSizeBuilder.Shape.Block
( o6 |# W9 e: u d stockSizeBuilder1.SelectBody.Add(Body)6 v) z) h# ~8 k4 L
stockSizeBuilder1.commint()
- e) @! m% ]8 U$ f8 x size = stockSizeBuilder1.StringStock2 w' G4 p# O6 C; n: v+ o- B
|
|