×
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

Pull Down Menu - How Can I Create

Pull Down Menu - How Can I Create

Pull Down Menu - How Can I Create

(OP)
Any help will be appreciated!

Is there a way in SW (sw2005 sp3.0) to create your own pull down (drop down) menu in the custom properties?  

I've considered using templates of each model but we have so many models that I'm affraid it might get to confusing.

An example:
I want to set up a custom property as follows:

Property Name   Type    Vale / Text Expression
MODEL              TEXT    (Use a pull down to select various models)
OPTION 1           TEXT    (Use Pull Down to Select)
OPTION 2           TEXT    (Use Pull Down to Select)

Thanks,
Brian

RE: Pull Down Menu - How Can I Create

You can use VB or VB.NET.  Download the API SDK from SolidWorks.com and install it.  That will create a new project type call SW Add-in which will get you jumpstarted.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...

RE: Pull Down Menu - How Can I Create

Can you be more specific about what you're trying to accomplish with this? Back up a bit & give us the big picture. You ask the question about making a menu, but what will you do with this menu? I have a gut feeling that there's already a way to do what you want without any programming. So let's see if I'm right.

SolidWorks 2005 SP01.1 / Windows 2000 Professional

RE: Pull Down Menu - How Can I Create

(OP)
TateJ,

The term "menu" may not be correct, "List" may be more appropriate.

If you go into custom properties now and add a custom property name with a type being text and then go to the "text/expression" field you can use a pull down list for items such as Material, Mass, density, Volume, etc.

What I would like to do is set up my own list of items to choose from in that field (or add & delete from the list that is there)

Brian
SW2005 sp3.0 XP Pro

RE: Pull Down Menu - How Can I Create

Which of the 3 colums do you want to add properties to?
... and I hope it's the first column - that's easy - just type it right there.

If you want these properties to be available for all future parts - you need to save this part as a PART TEMPLATE - in the correct folder & it will be available for future parts.

Are we getting there yet?

SolidWorks 2005 SP01.1 / Windows 2000 Professional

RE: Pull Down Menu - How Can I Create

(OP)
I want to have the pull down available in the last column ("Value/TextExpression")

Brian

RE: Pull Down Menu - How Can I Create

Oh... Let's try this another way... Assume you get it to work - exactly as you want...
What would you do with it? What's the greater goal here?
I still bet there's a path to your destination - but I have no idea where you're going.

SolidWorks 2005 SP01.1 / Windows 2000 Professional

RE: Pull Down Menu - How Can I Create

Maybe what you need it's your own macro to create custom properties.

There are some examples that you can search on the Internet (I think SW site as examples).

Check http://www.swcp3.com/

Some interesting stuff here.

Regards

RE: Pull Down Menu - How Can I Create

It is a good idea to do what you are asking with custom properties because it ensures that they are entered consistently and eliminates manual data entry.  I do this with my custom properties routine.  Take a look at the "Add Custom Properites" example in the API help.  There is no need for an addin, you can do this with a VBA macro that calls a form.  The form will contain either list boxes or combo boxes with the choices for each value.  When the form is closed the selections are then written to the file custom properties.  

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