Framework for .NET (C# and VB.NET) to create modern application for CAD systems (SOLIDWORKS, SOLIDWORKS Document Manager, Autodesk Inventor, etc.)
Get technical support Connect to xCAD community on Discord server Explore code and application examples xCAD.NET Templates for Visual Studio and VS Code Access source code

Managing of Edit Bodies in SOLIDWORKS macro feature

Edit bodies are input bodies which macro feature will acquire. For example when boss-extrude feature is created using the merge bodies option the solid body it is based on became a body of the new boss-extrude. This could be validated by selecting the feature in the tree which will select the body as well. In this case the original body was passed as an edit body to the boss-extrude feature.

public IXBody InputBody { get; set; }

If multiple input bodies are required it could be either specified in different properties

public IXBody EditBody1 { get; set; }
public IXBody EditBody2 { get; set; }

or as list

public List<IXBody> EditBodies { get; set; }

Powered by Docify