3DCADWorld Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCADSearch | 3DCADBooks | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive










  #1 (permalink)  
Old September 7th, 2006, 04:03 AM
jacklavender
 
Posts: n/a
Default Delete Selected Items Macro

Hi,

I want to write a macro that will draw a selection box and then delete whatever is selected there. (Its for modifying some old drawings that have unwanted notes on them in the same location each time.)

Hope you can help!

Jack

this is what I have...

Sub main()

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc
boolstatus = Part.Extension.SelectByID2("Sheet1", "SHEET", 0.1899620074174, 0.1867665172791, 0, False, 0, Nothing, 0)

' Here I want to delete whatever is selected rather than a named item
boolstatus = Part.Extension.SelectByID2("DetailItem1968@Sheet1" , "NOTE", 0, 0, 0, True, 0, Nothing, 0)
Part.EditDelete
End Sub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0