ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BDBernhard Dietsche11/03/2019

Hi,

Following my situation: I created an assembly containing 7 parts. These are linked correctly.

Every part contains the feature scale (uniform scaling around origin).

If I want to scale up/ down the parts, I proceed like open edit component mode, edit feature, enter the new value, confirm and close the edit mode and rebuild the model.

For my purpose i want to do this fully automated with vba.

Is there a way how i can access the feature and edit the values using vba?

Trying to record a macro resulted in:

boolstatus = Part.Extension.SelectByID2("scale1@part_name@assemlby_name", "BODYFEATURE", 0, 0, 0, False, 0, Nothing, 0)

Part.ClearSelection2 True

boolstatus = Part.EditRebuild3()

My problem is, that setting a value is not possible.

Thanks for your help.