×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Working with layers

Working with layers

Working with layers

(OP)
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

RE: Working with layers

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

RE: Working with layers

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:

http://eng-tips.com/viewthread.cfm?qid=166740&page=1


Flores

RE: Working with layers

(OP)
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

RE: Working with layers

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

RE: Working with layers

(OP)
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?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

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!


Resources