Message 1 of 12
Exclude dimensions from arrange rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using an arrange rule (see below) but I want the ability to exclude specific dimensions.
I'm also using Nifty Attributes / Attribute Helper and I imagine I would use names like these:
Attribute Set = arrange
Attribute Name = arrange
Value = no
Would anyone be able to help me out?
Arrange rule
Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet Dim oDrawingDim As DrawingDimension Dim oDrawingDims As DrawingDimensions Dim oDimsToBeArranged As ObjectCollection '[Dimensions in all Views and on all Sheets oDimsToBeArranged = ThisApplication.TransientObjects.CreateObjectCollection For Each oSheet In oDoc.Sheets oDrawingDimensions=oSheet.DrawingDimensions For Each oDrawingDim In oDrawingDimensions If TypeOf oDrawingDim Is LinearGeneralDimension Or TypeOf oDrawingDim Is AngularGeneralDimension Then oDrawingDim.CenterText oDimsToBeArranged.Add(oDrawingDim) End If Next Next oDrawingDimensions.Arrange(oDimsToBeArranged) ']