Does any know how to select bottom plane in C# SolidWorks API?
I tried to set "Bottom" in doc.Extension.SelectByID2("Bottom", "PLANE", 0, 0, 0, false, 0, null, 0); but it doesn't work. ChatGPT also doesn't help me
Does any know how to select bottom plane in C# SolidWorks API?
I tried to set "Bottom" in doc.Extension.SelectByID2("Bottom", "PLANE", 0, 0, 0, false, 0, null, 0); but it doesn't work. ChatGPT also doesn't help me
Copyright © 2021 Jogjafile Inc.
With something relatively simple such as selecting an item from the feature tree, the macro recorder is helpful enough.
VBA Macro Recorder Code:
Since your example is in c#, this is the relevant code in c# after you've set your swApp to the current solidworks application:
This is assuming you are using the built in macro tool and not a standalone application.
Edit: Note that using the SelectByID2 function requires that you use the exact name of the plane from the feature tree. If it's not named "Bottom" then it won't work.