Search found 2 matches

by harrycam
Fri Nov 25, 2022 6:53 am
Forum: API
Topic: Macro for changing selected entity of feature
Replies: 3
Views: 895

Re: Macro for changing selected entity of feature

Hi Jordan, Josh. Thanks for responding to this. Josh to answer your question, I intend for this macro to run after every rebuild (it will be embedded into the design binder) so effectively instead of the surfaceoffsetfeature referencing a face ID, it will reference a ray in the model which will pick...
by harrycam
Tue Nov 22, 2022 9:33 am
Forum: API
Topic: Macro for changing selected entity of feature
Replies: 3
Views: 895

Macro for changing selected entity of feature

Hi Everyone, I am a beginner with VBA and the solidworks API. I want to write a macro which when run, will find/select a face in the part using SelectByRay. It will then find a feature in the tree called 'TheFeature' and change its first selected entity to this face (no matter what the feature). Is ...