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 ?
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
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
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
RE: Macro to make parts from a generic design table
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