AnsweredAssumed Answered

Is it possible to find and change inserted part settings with the API?

Question asked by Tony Jones on Jul 24, 2017
Latest reply on Mar 1, 2019 by Simon Turner

I've been trying to find a way to modify the settings applied to derived parts when they are first inserted. The settings are shown in the screenshot attached (to clarify I'm meaning parts inserted into another part, not into an assembly). In particular I want to be able to toggle the custom properties option, but it would be nice to be able to control any of the settings below.


The method in the api reference only gives access to a limited number of the settings, unfortunately not custom properties transfer 2016 SOLIDWORKS API Help - Modify Derived Part Example (VBA)


It looks as though the insertpart2 method may be an option, as a bitmask can be used to apply these settings. However I only want to change the custom properties check box and make sure that the other settings are unchanged. I can't find a way of getting the current bitmask for a derived part - does anyone out there know of a way of doing this?


Any help much appreciated, thanks for taking the time to read this.