Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Separate Drawings For Each Model? 5

Status
Not open for further replies.

edreaux

Mechanical
Feb 7, 2006
89
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.
 
Replies continue below

Recommended for you

Nope ... I've just scanned through every line of the Tools > References but could not see one Forms Library.

[cheers]
Helpful SW websites faq559-520​
How to find answers ... faq559-1091​
SW2006-SP5 Basic ... No PDM​
 
The filename for the library is FM20.dll. It should be installed along with Office. If it's on your PC then you may just have to register it with "regsvr32 [path to fm20.dll]".
 
handleman ... you-da-man ... I had to reboot after registering the dll, but the macro is now working again.

I can't give you another star so hope you'll settle for a [2thumbsup] instead.

Many thanks.

[cheers]
Helpful SW websites faq559-520​
How to find answers ... faq559-1091​
SW2006-SP5 Basic ... No PDM​
 
Glad to help. If the dll was on your system but not registered it could be that your Office install was either incomplete or got corrupted. Office should have registered that dll when you installed it. If everything else works OK for now then I'd just file this away in the back of your head in case Office does anything else screwy.

Have a great day!
 
handleman,

Could you update the download link for the macro?

Thanks,
Ken
 
Sure - I'll try to remember to get it tomorrow. Already home for the day. :)
 
As promised, here is an updated link to the sheet pick macro.

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!
 
I think DocPick is handy, and it has a feature that would be great on SwitchSheets. That feature is holding down the shift key to pick different items. If that feature was on SwitchSheets, you could "preview" the sheets before you dismiss the dialog box.

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
 
Definitely possible. I'll check into it. It may be tomorrow, though.
 
Here it is. The new version is called SheetPick to highlight its feature that was added from DocPick at Flores' suggestion. I also added automatic sizing so that the dialog box will only be as big as it needs to be to hold the number of sheets in the drawing. After it gets up to about 20-something sheets it will quit growing and start scrolling. I thought about adding automatic sizing to DocPick, but due to the added complexity of having several boxes I don't think it's worth the effort. Anyway, hope this saves you a few clicks!
 
Handleman, you rock as always! SW07 made a measly attempt at improving sheet tabs by adding a little button for first sheet, and last sheet. Your macro is a vast improvement.

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
 
I am trying to download this macro but, when I click on "Click Here To Download" I get a "Page cannot be displayed" error message. Does anyone know what to change in my browser to be able to do the download. I am using MS Internet Explorer 6.0.
 
Try right-clicking and choosing "Save target as". It sounds like there's something screwy in your browser that is making it try to open the zip file with IE as a web page.
 
I've already tried that but still didn't work. I'll try to download it at home and send it to work by email.
 
Try this link. I did add auto-sizing to the DocPick after all. And I handled the error that occurs when you either double-click to close the last file or hit refresh with nothing open. Enjoy!
 
This link worked nice. I was able to use the other one as well but only from my home computer. Thank you.
 
Nice macros Handleman. When I use DocPick though, the window that comes up for the form only shows parts and I cannot expand it to show the drawings and assemblies. Any ideas?
Carl
 
It should show all documents that are open. Each list box on the form expands to hold all the documents of that type that are open. However, it doesn't refresh on its own. If you run the macro and then open files you have to hit the refresh button.
 
I opened parts and drawings and the whole form just doesn't show up. It only shows the top part where the parts are. It looks like a window that just needs to be pulled down to reveal the rest but it is fixed at the size that it opens.
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.
 
carlbud, it is working perfectly here, but if the latest one with auto-size doesn't work, then try the one above which doesn't have auto-size on it.

SW06 SP5.0

Flores
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor