This topic provides you with quick access to the enhancements in SolidWorks API 2013.
Service Pack 5
New methods and properties
IMacroFeatureData APIs
IRenderMaterial APIs
ISurface APIs
Obsoleted methods
IRenderMaterial APIs
ISurface APIs
Back to top
Service Pack 4
New methods and properties
IDimensionTolerance APIs
Obsoleted methods
IDimensionTolerance APIs
Back to top
Service Pack 3
New methods and properties
IExportPdfData APIs
ISelectionMgr APIs
Obsoleted methods
ISelectionMgr APIs
Service Pack 2
New methods
IFace2 APIs
Obsoleted methods
IFace APIs
Back to top
Service Pack 1
New functionality
New methods and properties
IBody2 APIs
IFeatureManager APIs
ISurfaceCutFeatureData APIs
Obsoleted methods
Back to top
Service Pack 0
New functionality
- Microsoft Visual Basic for Applications (VBA), one of the programming languages available to record, edit, and run macros in SolidWorks, has been upgraded to support both 32-bit and 64-bit data types. See VBA and SolidWorks x64.
- As of SolidWorks 2013, and later, installing Microsoft Visual Studio Tools for Applications (VSTA) is optional. VSTA allows you to record, create, edit, and run C# and VB.NET macros in SolidWorks. See VSTA Requires Microsoft .NET Framework 3.5.
- SolidWorks primary interop assemblies created with Microsoft .NET Framework Version:
- 2.0 are in install_dir\api\redist\CLR2. This is the version of primary interop assemblies to use with SolidWorks VSTA (VB.NET and C#) macros.
- 4.0 are in install_dir\api\redist.
- SolidWorks Costing includes an API. To get the entry-point interface to the SolidWorks Costing API, call IModelDocExtension::GetCostingManager. Click SolidWorks Costing API Help to open its Help system.
- SolidWorks Sustainability includes an API. To get the entry-point interface to the SolidWorks Sustainability API, call IModelDocExtension::GetSustainability. Click SolidWorks Sustainabilty API Help to open its Help system.
Other major enhancements are the ability to:
- Insert cosmetic weld beads and access their feature data and folders. See ICosmeticWeldBeadFeatureData, ICosmeticWeldBeadFolder, and IFeatureManager::InsertCosmeticWeldBead.
- Get the direction vectors of connection points. See IConnectionPointFeatureData::Direction.
- Get or set whether to display a ruler when the drag arrow manipulator moves. See IDragArrowManipulator::ShowRuler.
- Get or set whether to allow the unidirectional drag arrow manipulator to change direction when dragged past length = 0. See IDragArrowManipulator::AllowFlip.
- Create a forming tool feature with a point of insertion. See IFeatureManager::CreateFormTool2.
- Add display dimensions to a macro feature. See IMacroFeatureData::IAddDisplayDimensions.
- Get or set whether to apply the appearance of material. See IMaterialVisualPropertiesData::ApplyAppearance.
- Insert revision cloud annotations into drawings. See IRevisionCloud, IDrawingDoc::InsertRevisonCloud, IDrawingDoc::IInsertRevisionCloud, IView::GetFirstRevisionCloud, IView::IGetFirstRevisionCloud, IView::GetRevisionClouds, IView::IGetRevisionClouds, and IView::GetRevisionCloudCount.
- Create a conic curve in the active sketch. See ISketchManager::CreateConic.
- Get the direction of a bend in sheet metal. See IOneBendFeatureData::BendDirection.
- Get or set the background processing option and handle background processing events for drawings. See IDrawingDoc::BackgroundProcessingOption, DSldWorksEvents::BackgroundProcessingEndNotifyEventHandler, and DSldWorksEvents::BackgroundProcessingStartNotifyEventHandler.
- Handle drawing sheet activation events. See DDrawingDocEvents::ActivateSheetPostNotifyEventHandler and DDrawingDocEvents::ActivateSheetPreNotifyEventHandler.
- Hide Undo operations. See IModelDocExtension::FinishRecordingUndoObject2.
- Specify the type of numbering and whether to show the detailed cut list in indented BOM tables. See IBomFeature::NumberingTypeOnIndentedBOM, IModelDocExtension::InsertBomTable3, and IView::InsertBomTable4.
- Get or set the state of the flyout FeatureManager design tree. See IModelDocExtension::FlyoutFeatureTreeVisibility.
- Make a component virtual by saving it in an assembly. See IComponent2::MakeVirtual.
- Vary individual instances of linear and circular feature patterns. See IFeatureManager::FeatureLinearPattern3, IFeatureManager::FeatureCircularPattern4, and IFeatureManager::InsertVaryInstanceIncrement, IFeatureManager::InsertVaryInstanceOverride.
- Get the unique name of a section view. See IView::GetUniqueName.
- Get or set the transparency level of unmodified components in assemblies opened in Large Design Review mode. See IAssemblyDoc::LargeDesignReviewTransparencyLevel, IAssemblyDoc::LargeDesignReviewTransparencyLevelDynamic, and IAssemblyDoc::LargeDesignReviewTransparencyLevelEnabled.
- Create a SpeedPak configuration that includes all faces and a specified threshold of parts or bodies for the active configuration. See IConfigurationManager::AddSpeedPak2.
- Copy appearances to the clipboard and apply them to faces, features, bodies, components, and parts. See ISldWorks::CopyAppearance and ISldWorks::PasteAppearance.
- Merge bend tags in drawings of sheet metal parts. See IView::MergeBendTags.
- Get or set the text format of bend notes in the drawing views of sheet metal parts. See IView::GetBendNoteAttributeString, IView::GetBendNoteTextFormat, and IView::SetBendNoteTextFormat.
- Place the selected note, located on the sheet format, behind the drawing sheet. See INote::BehindSheet.
- Insert a note that contains all of the cut list item properties of a sheet metal part. See IView::InsertCutListPropertyNote.
- Access the centers of mass in a drawing view. See ICenterOfMass, IView::GetFirstCenterOfMass, and IView::IGetFirstCenterOfMass.
- Insert Center of Mass reference geometry and Center of Mass Reference Points. See IFeatureManager::InsertCenterOfMass and IFeatureManager::InsertCenterOfMassReferencePoint.
- Get or set whether to override the calculated mass, center of mass, and moments of inertia of the model currently being edited in a part or assembly document. See IMassProperty::OverrideMass, IMassProperty::OverrideCenterOfMass, and IMassProperty::OverrideMomentsOfInertia. Override mass, center of mass, orientation of principal axes, moments of inertia, and principal moments of inertia of the model currently being edited in this part or assembly document. See IMassProperty::SetOverrideCenterOfMassValue, IMassProperty::ISetOverrideCenterOfMassValue, IMassProperty::SetOverrideMassValue, IMassProperty::ISetOverrideMassValue, IMassProperty::SetOverrideMomentsOfInertiaValue, IMassProperty::ISetOverrideMomentsOfInertiaValue, IMassProperty::SetOverridePrincipleAxesOrientation, IMassProperty::ISetOverridePrincipleAxesOrientation, IMassProperty::SetOverridePrincipleMomentsOfInertia, and IMassProperty::ISetOverridePrincipleMomentsOfInertia.
- Get or set whether to display in section views only the bodies included in the SpeedPak configuration. See IDrSection::GetDisplayOnlySpeedPakBodies and IDrSection::SetDisplayOnlySpeedPakBodies.
- Create multiple exploded views of an assembly. See IAssemblyDoc::CreateExplodedView, IAssemblyDoc::ShowExploded2, IAssemblyDoc::GetExplodedViewNames, IAssemblyDoc::IGetExplodedViewNames, and IAssemblyDoc::GetExplodedViewCount.
- Convert views to sketches and blocks. See IView::InsertViewAsBlock, IView::ReplaceViewWithSketch, and IView::ReplaceViewWithBlock.
- Get or set whether to use edit balloon options when inserting auto balloons. See IAutoBalloonOptions::EditBalloons and IAutoBalloonOptions::EditBalloonOption
- Get the sheet metal folder feature from sheet metal models created in SolidWorks 2013 or later. See IModelDocExtension::GetTemplateSheetMetal.
- Create a 3D bounding box for a cut list item in a weldment part. See IModelDocExtension::Create3DBoundingBox.
- Add or remove the mark indicating if the configuration needs to be rebuilt and its configuration data saved every time you save the model document. See IConfiguration::AddRebuildSaveMark.
- Get the previous Tip of the Day and the index of the current Tip of the Day. See ISwHtmlInterface::GetPrevTipOfTheDay and ISwHtmlInterface::GetCurrent TODIndex.
Back to top
New interfaces
Back to top
New methods, properties, and delegates
IAssemblyDoc APIs
IAutoBalloonOptions APIs
IBomFeature APIs
IComponent2 APIs
IConnectionPointFeatureData APIs
IConfiguration APIs
IConfigurationManager APIs
IDragArrowManipulator APIs
IDrawingDoc APIs
IDrSection APIs
IFeatureManager APIs
IMacroFeatureData APIs
IMassProperty APIs
IMaterialVisualPropertiesData APIs
IModelDocExtension APIs
INote
IOneBendFeatureData APIs
ISketchManager APIs
ISldWorks APIs
ISwHtmlInterface APIs
IView APIs
Back to top
Obsoleted interfaces, methods, properties, and delegates
IAssemblyDoc APIs
IConfigurationManager APIs
IFeatureManager APIs
IModelDocExtension APIs
IView APIs
Back to top