In the process of Drawing Automation using Solidworks vb.net API we are facing one major hurdle regarding dimensioning. For the drawing automation we are generating the drawings using a pre-drafted drawing of a parametric 3D Model. However, when the 3D Part/Assembly gets updated in Solidworks, the views get updated as required but the dimensions are misplaced/ overlapped on each other (Please refer below Screenshots).
So that ,the user can select the entity when the distance between cursor and entity is less than PickRadius. Jive Software Version: 2018.10.0.1_jx, revision: 20181102150941.22e8dc7.release_2018.10.0-jx
depends on what you want to automate => scan folder => open assembly => get parts? or do you have an assembly opened in SW and you want dump part information to excel. In first case look atdocumentmanagerin second2017 SOLIDWORKS API Help - Traverse Assembly at Component and Feature Level Example (VBA)
I have created a macro that exports an image from SolidWorks to file and then copies it to the clipboard using Microsoft Excel in the background. This allows me to then quickly paste the image into emails and documents. Set xl = GetObject(, "Excel.Application") ' Excel is open
I have the same problem of this thread:https://forum.solidworks.com/thread/93844 Function CheckSubPart(swModelDoc As SldWorks.ModelDoc2, sFileNameCode As String) As Boolean CheckSubPart = False ' E' stato classificato come pezzo. Dim swFeat As SldWorks.Feature Dim FeatDefinition As SldWorks.DerivedPartFeatureData Dim sFeatName As String Dim sFeatType As String Dim bSkipImportSurf As Boolean Set swFeat = swModelDoc.FirstFeature bSkipImportSurf = False While Not swFeat Is Nothing sFeatName =
But you can keep the connection when renaming by right-click on file name and rename using solidworks tool for both files. For just one part it is pretty easy to do a Pack and Go, Select/Replace, and then replace the Save to Name text with the new part number/drawing number you want to give it.
I have a series of Library Feature Parts that I would like to assign to buttons in the Command Manager under a custom tab. This is because the Design Library itself is so overwhelmed with folder structure, that it doesn't make sense to bury it in there. Also, I intend to convert these into Macro Features in the future, so having the buttons already assigned and visible would be an easy transition in the future as well (once I get more comfortable with Macro Features).
activate advanced selection inside macro I'm trying to write a macro that activates an Advances Selection query I have that hides some components prior to saving off STEP files. I'm having trouble as the documentation mentions a .sqy file, but I'm getting a XML file when exporting my set up advanced selection?
I'm using the following (truncated) code to export table information to .csv. What's the method for exporting evaluated values as opposed to the raw values? Some of the info is currently coming from the title block and appears in $PRPSHEET:" format.
I have a macro that is saved to an internal server of my office. I have multiple users who have buttons, keyboard shortcuts, etc that are linked to this macro. If I want to update this macro for added functionality, I have to have EVERYONE close out of solidworks, save over the macro, and then everyone has to "reattach" the macro in their buttons again once they open up solidworks.
I am having a hard time to make a circular pattern around a selected point (like what we do manually) through macro. However, the "createCircularSketchStepAndRepeat" treats the selected point as one of the targets which need to be patterned. Is it possible to set "point-1" as the centre of the circular pattern? (please refer to the following image)
I want to have a Macro run every time the assembly gets rebuilt. My understanding that this is done by adding a Macro to the feature tree as a Macro Feature. I do not understand how to add a Macro feature from the SolidWorks help file. Nor can I find a simple tutorial (step by step instruction) or video on how to do this.
In one of my project I need to rename hundred of dimension name (From RH to LH). Can any one help to rename multiple dimension with the help of macro or any other short process? Please find the macro in the attachment.
I have been doing some really cool stuff in Powerapps to consolodate data across our company. I would like a little boost on this next function... I want to create a BOM from the latest released/approved assembly, just from using the SQL tables. I have had great success using the tables for extracting other information, at this point, I am ready to attempt this.
I want to be able to run a pressure vessel study through the api. However, unfortunately ICWStudy.RunAnalysis() fails if the studies it depends on are out of date. I would expect that it simply runs the required studies but unfortunately that is not the case. I was thinking i could find and run the dependent studies but i cant find anywhere in the API that gives me information on the dependent studies.
Imports EdmLib Public Class Class1 Implements IEdmAddIn5 Public name As String Public Sub GetAddInInfo(ByRef poInfo As EdmAddInInfo, poVault As IEdmVault5, poCmdMgr As IEdmCmdMgr5) Implements IEdmAddIn5.GetAddInInfo 'Specify add-in information poInfo.mbsAddInName = "My first add-in" poInfo.mbsCompany = "The name of my company" poInfo.mbsDescription = "This is a very nice add-in." poInfo.mlAddInVersion = 1 'Specify minimum version of SOLIDWORKS Enterprise PDM poInfo.mlRequiredVersionMajor = 5
Now, i delete all mates of selected component, but, the problem is,when i removed those mates, the direction of the component is changed. you should know that, from the begining i forced the direction of the mate withswMateAlignANTI_ALIGNED.