Separate Drawings For Each Model?
Separate Drawings For Each Model?
(OP)
I have been keeping all of my project drawings within one file. (One drawing file per project) This means that a large assebmly will have many drawing sheets in the drawing file. - Is this typical swx practice? If so how can you switch from different sheets without scrolling to find the tab?
Thanks.
Thanks.






RE: Separate Drawings For Each Model?
If you want to be able to change sheets w/o scrolling around it would be fairly simple to write a macro that would show all the drawing sheets in a list box and switch to the selected sheet when clicked.
RE: Separate Drawings For Each Model?
You will probably find all the possible variations are being used.
1 drawing (single sheet) per model file.
1 drawing set (multi sheet) per single assy & related parts.
1 drawing set (multi sheet) for all model files (assy's & parts)
1 drawing set for all assy files plus 1 drawing set per all part files.
I use the last one, as I find it handy to be able to separately print all the assy's, or all the parts.
how can you switch from different sheets without scrolling to find the tab?
I would also like to know if there is a shortcut. On larger drawing sets, I often "collapse" the sheets in the Drawing Manager then scroll & activate from there.
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
Chris
Systems Analyst, I.S.
SolidWorks/PDMWorks 05
AutoCAD 06
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716
RE: Separate Drawings For Each Model?
http://
RE: Separate Drawings For Each Model?
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
RE: Separate Drawings For Each Model?
Visual Basic for Applications
SolidWorks Extensibility Type Library
OLE Automation
SldWorks 2006 Type Library
SolidWorks 2006 Constant type library
Microsoft Forms 2.0 Object Library
I would guess you'll need to reference the 2005 versions of the SW libraries. I don't think I used anything that's unique to 2006.
Let me know if it works...
RE: Separate Drawings For Each Model?
Thanks handleman
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
Whenever you run this macro, the top sheet (sheet1 for example) in the dialog-box is highlighted with a gray outline. Would it be possible for it to highlight the current sheet that your on?
Flores
SW06 SP4.0
RE: Separate Drawings For Each Model?
If you're just starting out with this macro you'll still need to download it, since it includes a user form. Once you've downloaded it, you can edit it and replace the code in the SwitchSheets1 module with the code below.
CODE
Dim swDoc As SldWorks.ModelDoc2
Dim swDwgDoc As SldWorks.DrawingDoc
Sub main()
Set swApp = Application.SldWorks
Set swDoc = swApp.ActiveDoc
If swDoc.GetType <> swDocDRAWING Then
MsgBox "Please open a drawing document to use this macro."
Exit Sub
End If
Set swDwgDoc = swDoc
SheetPick.ShtNameBox.List = swDwgDoc.GetSheetNames
SheetPick.ShtNameBox.Value = swDwgDoc.GetCurrentSheet.GetName
SheetPick.Show
While SheetPick.Visible
DoEvents 'Wait
Wend
If SheetPick.ShtNameBox.Value <> "" Then
swDwgDoc.ActivateSheet SheetPick.ShtNameBox.Value
End If
Unload SheetPick
Set swDwgDoc = Nothing
Set swDoc = Nothing
Set swApp = Nothing
End Sub
RE: Separate Drawings For Each Model?
Flores
SW06 SP4.0
RE: Separate Drawings For Each Model?
Have fun!
RE: Separate Drawings For Each Model?
in the control panel veiw of your dual monitor setup, do you have your monitors set with #2 on the left and #1 on the right. If so, windows adresses this #2 monitor with negative values, and since top left is called for in startup windows adresses this with the lowes display values (-x,0) rather than (0,0) which is always the value of the upper left pixel in #1.
Nice macro handleman.
RE: Separate Drawings For Each Model?
Flores
SW06 SP4.0
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
Both Office & Windows have been updated with whatever the Microsoft Update utility had to offer.
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
I can't give you another star so hope you'll settle for a
Many thanks.
RE: Separate Drawings For Each Model?
Have a great day!
RE: Separate Drawings For Each Model?
Could you update the download link for the macro?
Thanks,
Ken
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
I went ahead and included another macro called "DocPick" that does a similar function for all open files. I wrote it because for some reason whenever I get more than 10 windows open the Window commands get very unreliable, especially the Window->More Windows dialog. When run, it shows a dialog box with three list boxes showing the names of all open windows in alphabetical order; one for parts, one for drawings, and one for assemblies. It also gives you a count of all documents that are open, including those that are open but not visible (due to assembly/drawing being open). Clicking on any of the file names in the list boxes will activate that window. When you release the mouse button the macro will quit. If you move the cursor to another document in the list before releasing the mouse button then it will activate the new document. If you want to activate the window but not close the macro you can press the Shift key before releasing the mouse button. Checking the "Double click closes file" box will also keep the macro open after single-clicking any document name. Of course, it also does what it sounds like - double-clicking will close that window, prompting for save if necessary. Of course, the file itself will stay open if it's referenced by any open drawing or assembly.
Enjoy!
RE: Separate Drawings For Each Model?
If not the "hold shift down to keep box active", then maybe a checkbox or "OK" button to dismiss it.
Helpful if you have 20+ sheets and you're not exactly sure what sheet a particular model it's on.
SW06 SP5.0
Flores
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
On a side note, one of my side mouse buttons is Shift, so I do not even have to take my hand off of the mouse to pick different sheets. I guess I could program the Spaceball for that also.
SW06 SP5.0
Flores
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
Carl
RE: Separate Drawings For Each Model?
RE: Separate Drawings For Each Model?
Oh well, these are the kinds of little problems that motivate me to learn more about how things work. Macros in this case.
Thanks again for your efforts with these.
RE: Separate Drawings For Each Model?
SW06 SP5.0
Flores
RE: Separate Drawings For Each Model?
Thanks
RE: Separate Drawings For Each Model?
(OOPS! I almost forgot to link to the file!)
Red Flag Submitted
Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Eng-Tips forums is a member-only feature.
Click Here to join Eng-Tips and talk with other members!