Search results from your query.
Categories:
Sort:
Guys I've been trying to select the "front plane" and draw a sketch on it. When I execute the file, the code gives me an error saying " object not set to reference".But its already declared as a boolean. Why is it still showing it as " not set to a reference"
SOLIDWORKS Forums
7 hours ago
I have created a custom function named Create_pt in my code in which it calculates a x coordinate and y coordinate, xpt and ypt respectively. The reason for using a function is because I reuse the same block of code elsewhere. How do I return the values for xpt and ypt from the function? The help file said that if I want to return a value from the function I assign the value to the function name.
SOLIDWORKS Forums
8 hours ago
I am trying to insert a fresh BOM table to my drawing with macro. I am using the code below. But when i run it, it places the table to bottom left and also showing all the configuration i have on that assembly.
SOLIDWORKS Forums
21 hours ago
This Macro works by traversing an assembly, and looking for any sheet metal parts, then exports those flat patterns as a DXF, in folders according to material type and thickness. Debug.Print "File = " & swModel.GetPathName
SOLIDWORKS Forums
2 days ago
Compile error: Type mismatch If swModel Is Nothing Then
SOLIDWORKS Forums
2 days ago
Just wondering if anybody has gottenJeff's ConfigRipperto work for assembly configurations...? Tags:none(add)configripper
SOLIDWORKS Forums
2 days ago
I have started learning PDM APIs and created a macro to get the latest version of the active document in SolidWorks, but I am not able to get the latest vesion. Here are the codes: Option Explicit Sub main() Dim swApp As SldWorks.SldWorks Dim swModel As ModelDoc2 Dim swVault As EdmVault5 Dim swVault7 As IEdmVault7 Dim swFile As IEdmFile5 Dim swFile12 As IEdmFile12 Dim swFolder As IEdmFolder5 Dim swParFolder As IEdmFolder5 Dim swPos As IEdmPos5 Dim swSelFiles(0) As EdmSelItem Dim swBatchGet As
SOLIDWORKS Forums
2 days ago
I am working on a program to save DXF file into separate thickness wise folders(if it is there else create new folder). To get started i first need to get the thickness of part, and for that i found a program from one of forums, but when i select any face other than the base flange face, it gives me debug error, I am thinking if i can get the thickness without selecting any face. The program is:
SOLIDWORKS Forums
2 days ago
I have an assembly file which has about 90 different configurations, i need to export each configuration as a seperate STEP file. Is there a macro which can help me, because it will save I am working with Solid Works 2011, i would appreciate your help!
SOLIDWORKS Forums
2 days ago
I have already post the quesion here Unfortunately are not practical with macros.
SOLIDWORKS Forums
3 days ago
Guys Iam trying to open an sldprt file using solidworks api. (1) Firstly I used the openfiledialog box to open the sldprt file and display its name in a textbox
SOLIDWORKS Forums
3 days ago
Counting Hole Instances I've found a bug in a program I'm working on that has to do with my method of collecting hole feature instances. I'm trying to check if all instances of hole features have been fully dimensioned (based on a very simplified constraint model).
SOLIDWORKS Forums
3 days ago
I have searched the forums here and external to this site trying to find any examples or discussions about the above topic to no avail. First, what I am trying to do is create a macro (vba) that will open a specifically named document we place in our SW files in the Design Binder.
SOLIDWORKS Forums
3 days ago
I have a form that has a button, with the button i open a webpage, on that open webpage i need to scroll to the lower right. this is an internal company page. I'm using explorer.exe because it will open using whatever browser was last used. My issues is, that once open i need to scroll to the lower right of the browser, because the call shell "centers" the browser on one of the frames, instead of what i need.
SOLIDWORKS Forums
3 days ago
I am trying to create a macro, that will switch the configuration of the drawing views in to my appointed name. I tried to record macro and run it, but looks like it didn’t work. The configuration stays the same as it is before.
SOLIDWORKS Forums
3 days ago
Macro Instability With Different SolidWorks Versions? I am new to SolidWorks macros and looking into setting one up. Do macros not work with the different yearly versions of SolidWorks consistently?
SOLIDWORKS Forums
3 days ago
TaskpaneView.AddControl question I'm writing an add-in for SolidWorks 2010 (C#).
SOLIDWORKS Forums
3 days ago
We are in the process of getting 2018 ready to deploy and I am updating our existing VSTA macros to use the new version. I got some of them to open and compile but I have two left that will convert but the editor will never launch. Does anyone have any ideas as to why this might be happening?
SOLIDWORKS Forums
4 days ago
Guys, Iam unable to find the'swvbaddin' template in Visual Studio for solidworks 2015 API. I downloaded and installed 'solidworks API sdk', but when I opened Visual studio and selected 'new project' the template wasn't there. Can anyone help me with a solution?
SOLIDWORKS Forums
4 days ago
I use the following code to get center coordinate of circle01 (C01) and circle02 (C02). But the values are referencewith part origin(see Fig1) rather than assembly origin (see Fig2).
SOLIDWORKS Forums
4 days ago
I want to export BOM to my ERP program. I need to iterate between model tree. Is there any good sample for this please?
SOLIDWORKS Forums
4 days ago
is there a way to get the Parent_Folder_ID from the file-ID ? At the end i need the Folder-Path but every api command to get the Folder Path Needs the Folder-ID ?
SOLIDWORKS Forums
4 days ago
I 'm not good at English. Sorry. Please teach me your skills.
SOLIDWORKS Forums
4 days ago
I want to use scroll bar to control angle between Link1 & Link2. But there's an error in .EditMate4 funtion.
SOLIDWORKS Forums
4 days ago