AnsweredAssumed Answered

Changing Dimension in Part Rather than Assembly

Question asked by Nathan Vigneaux on Sep 15, 2017
Latest reply on Sep 15, 2017 by Nathan Vigneaux


I have followed this example:


The example works well for an assembly, but when I try to apply this to a part it will not work.

I changed the file name and also the parameter 'swDocumentTypes_e.swDocASSEMBLY' to 'swDocumentTypes_e.swDocPART'

but I keep getting this error:

Object variable or With block variable not set (Error 91)

at this line:

'Set swDim = swFeature.Parameter("D3")'


I've also changed the dimension names so that they match up with the code.

Can anyone tell me why it is not getting a value?