![]() The Readiness Toolkit for Office add-ins and VBA is designed to help organizations identify documents that contain VBA macros, assess the compatibility of those macros with Office 365 ProPlus, and provide add-in readiness information for Office add-ins. Set selected object’s appearance using IDisplayStateSetting Set selected object’s color using IRenderMaterial Set or remove material from a part or selected body Set or remove selected object appearance using that object’s members Remove appearance of selected object using IDisplayStateSetting Remove all part appearances using IRenderMaterial Modify all existing appearances in a part using IRenderMaterial Update configuration listed in external references of inserted part feature Appearances and MaterialsĬhange selected body’s material in all configurations Select all faces with same color as pre-selected face Insert axes concentric to cylindrical faces of selected feature Get or set dimension value in a part while in drawing or assemblyĬreate configuration based on user input (Intro to API webinar)Ĭreate extruded base with user form (SolidWorks World 2012)ĭelete global variable and all associated equations Traverse body features and make dimensions read-only Get sketched outline / projection of partĪdd, subtract, or combine two selected bodies Kill listener class after event notification fires Opening and saving documentsĭisplay a SolidWorks-native Open dialog boxĪutosize all reference planes in active part Notify user when a specific feature is created Message user upon application exit using notifications Save component after dropped from task paneĭetermine whether new or existing file was openedĭrawing sheet change event notification exampleĬancel save if part wasn’t modified using notifications Macro Feature and PMP skeleton for modifying input body Event notifications Macro feature and PMP skeleton for creating a body Get the features used to create a featureĬreate axes through all points normal to a plane Macro features Get the parent sketches of a selected featureĭemonstration of important IFeature members Modify filleted entities using pre-selection Modify filleted entities using adjacent edges Relocate view to true center after extents are modified Features Get IEntity pointer for entity selected in drawing view Get selected bend line’s owning flat pattern feature Get a view’s orientation using transformsĮxport all drawing sheets to a single PDF Get the names of all sheets and drawing views Get the text and custom property link of a note Insert broken view and position break lines Search for and hide components in drawing viewsįlip visibility of all blocks in a drawingĬhange the dimension colors in selected view Move all configuration specific custom properties to document custom propertiesĬopy drawing custom properties to part or assemblyĬopy part or assembly custom properties to drawing custom propertiesĮxport model’s custom properties to Excel fileĭemonstration of important custom properties methodsĬhange BOM quantity in custom properties DrawingsĪdd callouts to all hole wizard holes in selected drawing view Get belt length and add to belt component’s custom properties Custom properties Use mate references for mating automationĬreate configurations at component level and reference them at assembly level Insert components at a specific location using transforms Get the feature information for a component Get mate info: mate type, owning component, faces used, faces’ owning featureĭissolve all component library features in assemblyĪssembly automation example – with transformsĪssembly automation example – without transformsĬhange configuration of selected component Isolate parent sub-assemblies of selected components ![]() Toggle component lightweight / suppressed stateĭelete specific folder and its components Rename assembly component from feature tree Toggle document’s unit system between MMGS and IPS Assemblies Is body a 2D body (manufacturable using only two axes) Save out all part components with specified extension Get name, owner, type, position, and value of all dimensions on a sheetĮquation-Triggered Macro Utility (ETMUtil) Keep VBA user form on top on 64 bit systemsĬreate 3D points from data in Excel or text fileĭisplay selected component’s custom propertiesĪpply all dimension values to all configurations Read our FAQ for more information about macros and the API. ![]() A public version ( ) of a macro means that the VBA macro may be downloaded and run by any member, but the source code is only available to premium members. Check out our free PDF, “VBA Debugging Tips for SolidWorks API Programmers” for help with run-time and compile errors you may encounter while programming. You can search for all macros containing a certain API call by typing that call name in the search box at the bottom of the page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |