Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Is possible get flat extent dimensions from part without rule inside .ipt?
I am looking for rule inside .idw, which can get these informations. Code below works fine with parameters, but flat extents are not in parameters.
I didnt use default method (<FLAT PATTERN LENGTH>), because I need this dimensions rounded up with increment.
Thanks for advice
VyhoziModel = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName) ' Get first input model name Rozvin_delka = Parameter(VyhoziModel+".SheetMetal.FlatExtentsLength") ' HERE I NEED GET EXTENTS LENGTH Rozvin_sirka = Parameter(VyhoziModel+".SheetMetal.FlatExtentsWidth") ' HERE I NEED GET EXTENTS WIDTH inc = 0.1 ' rounding increment ( .125, .25, .5, etc) iProperties.Value("Custom", "ROZVIN")= Ceil(Round(Rozvin_delka,4) / inc) * inc & " x " & Ceil(Round(Rozvin_sirka,4) / inc) * inc ' IDW iProperties
Solved! Go to Solution.