Message 1 of 16

Not applicable
02-06-2014
03:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
I am trying to create a semi automated drawing from an ever changing assembly.
My VB and iLogic knowledge prior to this was zero, but thanks to a lot of help from you guys in these forums I have something which kind of works!
What im trying to do now is use a piece of code to select all dimensions in the drawing and then run the Arrange command. When i do it this way manually it does what i want it to, however when i try and do it within iLogic with the code below (sorry if it messy/stupid!), it runs the command but I still have to manually select the dimensions.
Any help would be much appreciated!
Dan
Sub Main () Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim oDrawingDims As DrawingDimension For Each oDrawingDims In oDoc.ActiveSheet.DrawingDimensions Next ThisApplication.CommandManager.ControlDefinitions.Item("DrawingArrangeDimensionsCmd").Execute End Sub
Solved! Go to Solution.