SolidWorks API Delete Revision Table
Stack Overflow » Solidworks
by demarcjp
1d ago
The issue I am having is using the API I can get a macro to sometimes delete the table. On some drawings method A works, on some method B, and others nothing works. I suspect it may have something to do with one source template being created in France, but I am not sure. I also have a suspicion that the location of the table may be a factor. I am NOT a programmer, I am usually able to combine information from here, some faint recollection of VB back in college, and recording some items, then making it work. Usually I am successful, but this one has me stumped. Method A: 'Captures the item nam ..read more
Visit website
Is there a way to change the Solidworks properties after a drawing has been placed through VBA
Stack Overflow » Solidworks
by eherman
1w ago
I'm trying to update a Solidworks VBA script to adjust properties of a view after it has already been placed and am unsure how to actually do this. In the GUI once I select the view I can edit these properties (e.g. display state, scale, dimension type) via the property manager and the drawing view tab. If I try to make a macro that I can then use as my baseline I only get my the selection of the drawing view from SelectByID2. boolstatus = Part.Extension.SelectByID2("Drawing View1", "DRAWINGVIEW", x, y, z, False, 0, Nothing, 0) Part.ClearSelection2 True Is there a way to actually modify thes ..read more
Visit website
SOLIDWORKS, Cant draw a curve [closed]
Stack Overflow » Solidworks
by Mohamad
2w ago
I am trying to curve the outline but I could not figure it out,Tried to watch different videos but I could not achieve the desired result, Can someone help me please https://i.stack.imgur.com/nOuFm.jpg https://i.stack.imgur.com/WCT9o.jpg I am not sure what tools to use to achieve the cushion shape ..read more
Visit website
Circular profiles on the hallow sphere in Autodesk Inventor
Stack Overflow » Solidworks
by user23805516
1M ago
I am currently working on a project where I need to create the Circular profiles on the hallow sphere in Autodesk Inventor, but I am unable to create the Profiles on the sphere. I tried creating planes and axis to draw the profiles, but due to hollow I am unable to create. Please provide a feasible solution and help me to figure out the issue ..read more
Visit website
How can I activate a model window if it is already open? Solidworks VBA
Stack Overflow » Solidworks
by Cadell
1M ago
I am trying to find a way to automatically open the model the drives Drawing View 1. I have the following code which opens the model if it is not open already, but if it is already open, does not activate/show the window with the model open. I would like my code to open the model if it's not already, or switch the window to show the model if it's already open. Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim swApp As Object Dim swModel As SldWorks.ModelDoc2 Sub openpart() Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc ..read more
Visit website
Solidworks dwg with bendlines, how do i merge these two codes?
Stack Overflow » Solidworks
by Eduardo GM
1M ago
I have these two codes (harvested on internet) that separately are doing great. But i need them to be one. My main objective is to generate only one file, and not two, as this code is retrieving; and with the same as my part. This one is working great, both is actualy, but this is creating two dxf files and I only need one of them. Beside, it create using the "view name" i rather it to be the file name. https://www.codestack.net/solidworks-api/document/drawing/export-sheet-metal-views/ The next one doesnt works properly but it uses the file name, to name the new file. Macro to export Solidwork ..read more
Visit website
Open an Excel Workbook Using SolidWorks API in VBA
Stack Overflow » Solidworks
by Anthony Meeks
1M ago
I'm trying to open an Excel workbook or if already open, grab its object. Nearly everything online assumes you're running VBA from Excel, so it makes it easy to scan your open workbooks to see if your specific workbook is open. An instance of Excel may not be running on my machine. I found a way to accomplish what I need, except by default, it automatically hides my workbook. I can manually unhide, but I don't want to do that. I found the following xlApp.Windows(fileName).Visible = true This works if I first manually unhide it. If I try to run this line of code before I manually unhide it, I ..read more
Visit website
Problem saving Solidworks files inside PDM vault using macro
Stack Overflow » Solidworks
by Enrico Calzolai
2M ago
I'm afraid my question may be too specific but I really don't know how to solve this problem without help. I'm creating a SolidWorks vba macro to name and save new models inside the PDM vault. The macro uses the built in SaveAs3 method and allows the user to select various save options: Save as, Save as copy and continue and Save as copy and open. The problems are as follows: Once saved, the PDM datacard does not pop up automatically as when you save a file normally. This is a negligible problem except that I believe it is connected to the following more serious ones. When the user fills in t ..read more
Visit website
Issue displaying PMI annotations in Autodesk Viewer for assembly files
Stack Overflow » Solidworks
by Emmanuel Carvalho
2M ago
I am facing an issue when trying to display PMI (Product and Manufacturing Information) annotations in Autodesk Viewer for SolidWorks assembly files. I have an assembly file created in SolidWorks, where I added dimensions using the MBD extension. I exported this file to STEP AP 242 format, which supports these PMI annotations, and was able to view them correctly in eDrawings. However, when opening the same file in Autodesk Viewer, the PMI information does not appear. Interestingly, I noticed that the PMI annotations are displayed correctly in Autodesk Viewer for files that are not assembly fil ..read more
Visit website
Trying to split object with a dovetail connector and stopper
Stack Overflow » Solidworks
by SmooreInsight
2M ago
I'm trying to split my model in the style of a dovetail using a stopper layer at the bottom. The front half will be removable and then placed on the back half with the stopper layer preventing gravity from pulling the front all the way through. Here are the surfaces I created inside the model for the split. I am new to creating surfaces for splitting, but this is what seemed to be doable. I also don't understand when knitting is required. Imagine the outline of this image as the shape of a prism in my model that I wish to cut into two bodies. There is also a hole going through the prism for a ..read more
Visit website

Follow Stack Overflow » Solidworks on FeedSpot

Continue with Google
Continue with Apple
OR