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!

Macro for passing values into designtable

Status
Not open for further replies.

rkam

Mechanical
Oct 30, 2007
26
I have a created a SW part with the part dimensions controlled thru a design table.

I need a macro that would pop up a form and allow the users to select values and pass it to the design table & update the model.

Does anyone have some similar macro and can share this with me?

Regards,
RK
 
Replies continue below

Recommended for you

Yes but the design table (Excel) entries are not getting recorded...

I have not used vba editor extensively but would like to create a form in this case to pass in the values.

I have a table of values and the values are interdependent. The idea here is, I don't want the users to open the design table but would like to have them run a macro and select the values from a form & pass it into design table.

I am not looking for an exact macro but something similar so that I can use that and continue ahead.
 
If no one comes up with API code for directly interacting with the design table, you might try attacking it in the following manner:

Ensure that the system options are set to allow model edits to change the design table, and then use the API to modify model items tied to the design table. You may need to create some dummy sketches or custom properties (potentially configuration specific) if the parameters that you wish to change do not appear directly in your model geometry. If you want the new values to be used in a new configuration, you would need to use the API to create that configuration before changing the model values.

Also, I have seen DriveWorks suggested as a possible solution when others have posted questions similar to yours.

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor