×
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

Macro to make parts from a generic design table
2

Macro to make parts from a generic design table

Macro to make parts from a generic design table

(OP)
Hi All

I am trying to figure out how to read data from a design table and apply it on an existing part(not built with a macro). imagine a bolt, that I have put the letter Dh for the head diameter in the dimensioning , and in the design table I have indicated different Dh for different designs. how should I apply these values to the parameter Dh in the part using a Macro ?

RE: Macro to make parts from a generic design table

Hi,

You need to parse the excel (either using the Excel APIs or preferably via the ODBC/OLED source for the performance reasons). Then you can use this method to apply parameters: Configuration::SetParameters.

Thanks,
Artem

RE: Macro to make parts from a generic design table

LCform,

If you have your data in a design table, you can easily select the version you want at assembly time. You can select multiple versions of the part for the same assembly. Why use a macro?

Can you enter your tabular data into the design table, and make a selection from there? This results in part, albeit, an easily re-configured part.

What are you trying to accomplish?

--
JHG

RE: Macro to make parts from a generic design table

(OP)
exactly what you said before drawoh, just since all the configurations are not saved as part, and only there is one, but I have to edit it every time for other configurations and copy and save them in another folder, but I dont know the method you mentioned , how is it done ?

RE: Macro to make parts from a generic design table

LCform,

You can model a part with multiple configurations, and select a configuration at assembly time. For example, you model a cap screw. You create a configuration for each size and length. You insert the screw into your assembly. You change the size of the screw by selecting a different configuration. You insert another screw, and you change the size of that by selecting another configuration.

--
JHG

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