Macro for passing values into designtable
Macro for passing values into designtable
(OP)
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
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






RE: Macro for passing values into designtable
Regards,
Scott Baugh, CSWP![[pc2] pc2](https://www.tipmaster.com/images/pc2.gif)
FAQ731-376: Eng-Tips.com Forum Policieswww.scottjbaugh.com
RE: Macro for passing values into designtable
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.
RE: Macro for passing values into designtable
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