Step through part dimension visibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been trying to sequentially show (and then hide) the dimensions for each feature (together with its related sketch dimensions) in a part browser tree.
I can set the visibility for any one of the sketches with e.g.
oSketches.Item(1).Visible = True
oSketches.Item(1).DimensionsVisible = True 'Show sketch dimension
and show the visibilty of the feature dims with e.g.
Set oFeature = odef.Features.Item(1)
oFeature.FeatureDimensions.Show 'Show feature dimension
but I cannot work out how to test which feature a particular sketch is dependent upon. Until I do this the visibiliy
of the feature and sketch dimensions cannot be synchronised.
I expected something like
If odef.Features.Item(1) = oSketch.Parent might work or maybe the Isownedby function but so far I have had no luck with anything I have tried.
If anyone can help I would much appreciate it.
Thanks
Roger Mitchell