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!

Working with layers

Status
Not open for further replies.

Russell67

Automotive
Nov 1, 2005
114
When i click on the icon for a note, weld symbol etc how can i change that to a specific layer before i create the object? I prefer to do it before the object is created to avoid the forgetten few. Thanks
 
Replies continue below

Recommended for you

You can switch to that layer prior to creating your annotation. Make sure to have the layers toolbar visiable, and then just use it to pick your active layer.

OR if you created the annotation already,

In the PropertyManager pane that comes up when you click on an annotation, simple pick the layer within the layer section.

Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
 
Handleman created a macro for me that does exactly what you want (almost). After I finish a drawing, I hit this macro on each sheet, and it automatically moves all dimensions to one layer, all text to another layer, and moves a note we have (NOT FOR PRODUCTION) to it's own layer.

If you look at Handleman's post, you can add "swWeldSymbol" or other annotation types to the macro to include them also:





Flores
 
Thanks. I copied the code made a few tweaks ran it, but ran into a few problems.

1) Current drawing template has a layer for balloons, so i need to ensure these go were they are required.

2) Changed color of text in titleblock. Which of course is all notes and wants to put on note layer.

If i can solve those issues bingo i am there. However i think that they might be kinda difficult, but at least i have a start.

Ultimatly i would like this to be more of a hidden process such as;

User wants to insert a balloon into drawing. So he clicks on "Balloon Icon" (Macro in disguise sets layer to Balloon). Insert balloon and off to next action.

Vision would be to have all these "Icons" in a custom company standard type toolbar.

All in all i feel i am on the right track and any help given is help greatly appreciated. Thanks

 
Can't help you with your 1-button/layer macro, but as far as the titleblock, here is what we did:

Edit sheet> pick text > on "Line Format" toolbar pick the "Line Color" tool > uncheck the "Default" checkbox and pick the color you want.

You can pick several notes on the titleblock at a time and de-select the "default" checkbox.

Save the drawing as a template and sheet format and you will not have to repeat those steps again.

Flores
 
Thanks smcadman. I really like the macro and maybe making the magic button is not the solution.

I see that if i record a macro of making a note with a specified border that when i view the macro i see some code
boolstatus = Note.SetBalloon(1, 0) whereas the 1 represents the type of border selected.

Would it be possible that from within your macro that if i were to search for notes that had certain border criteria i could put them on specific layers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor