Message 1 of 4

Not applicable
05-19-2017
10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It has been nearly 10 years since I wrote code and boy am I feeling rusty:)
Can someone tell me what I am missing here. The only sketches in this drawing are revision clouds which is what I am trying to be able to move.
Dim oDoc As DrawingDocument Set oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet Set oSheet = oDoc.Sheets(1) Dim oDwgSketch As DrawingSketch Dim oSketchObj As SketchEntity Dim oTransGeom As TransientGeometry Set oTransGeom = ThisApplication.TransientGeometry Dim oCollection As ObjectCollection Set oCollection = ThisApplication.TransientObjects.CreateObjectCollection() Dim oVector As Vector2d Set oVector = oTransGeom.CreateVector2d(3, 1) For Each oDwgSketch In oSheet.Sketches If Left(oDwgSketch.Name, 13) = "RevisionCloud" Then For Each oSketchObj In oDwgSketch.SketchEntities oCollection.Add oSketchObj Next Call oDwgSketch.MoveSketchObjects(oCollection, oVector) End If Next
Solved! Go to Solution.