Message 1 of 8

Not applicable
04-11-2018
12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
how can I put this rule from assembly to see the measurements of real cuts of beams w6x25 w5x16 in the properties
SyntaxEditor Code Snippet
' This rule uses the Measured Extents in the Z direction to develop a parameter which will be used in the material list description. On Error Resume Next oDoc = ThisDoc.Document ' Verify that the document is fully updated prior to taking measurements. InventorVb.DocumentUpdate() ' Work features will be included in the extents if they are visible, which interferes with accurate measurement.' Object visibility of work features and surfaces will be set to invisible before the measurements are taken, then returned to their previous state. 'toggle construction surface visibility off oDoc.ObjectVisibility.AllWorkFeatures = False oDoc.ObjectVisibility.ConstructionSurfaces = False oDoc.ObjectVisibility.Sketches = False oDoc.ObjectVisibility.Sketches3D = False ' Determine the extents of the part in Z direction' Assign the measured value to the LENGTH_DESC user parameter LENGTH_DESC = Measure.ExtentsHeight 'toggle construction surface visibility on oDoc.ObjectVisibility.AllWorkFeatures = True oDoc.ObjectVisibility.ConstructionSurfaces = True oDoc.ObjectVisibility.Sketches = True oDoc.ObjectVisibility.Sketches3D = True ' Update so changes are visible to the user RuleParametersOutput() InventorVb.DocumentUpdate()
Solved! Go to Solution.