Search found 603 matches
- Wed Feb 28, 2024 2:20 pm
- Forum: SW General
- Topic: How can this be possible???
- Replies: 19
- Views: 1705
Re: How can this be possible???
One help I've found is to color the key parent parts at the assy level, OR live by the rule of always working in a specific quadrant for symmetric assemblies. You call also roll the feature tree back above all the patterns/mirrors so they are invisible and unavailable for mates. Out of sight, out o...
- Wed Feb 28, 2024 9:24 am
- Forum: How To Questions
- Topic: Body Mass in Part
- Replies: 10
- Views: 695
Re: Body Mass in Part
Here's a VBA version, using PartDoc::GetBodies instead of traversing the feature tree, which shortens the code quite a bit: Option Explicit Dim swApp As SldWorks.SldWorks Sub main() Dim mDoc As ModelDoc2 Dim pDoc As PartDoc Dim mExt As ModelDocExtension Dim massProp As MassProperty Dim vBodies As Va...
- Tue Feb 27, 2024 11:52 am
- Forum: SolidWorks PDM
- Topic: How do I get Admin Image changes to the client machine
- Replies: 3
- Views: 355
- Tue Feb 27, 2024 11:41 am
- Forum: SW General
- Topic: Confirm Delete Dialog Strangeness
- Replies: 8
- Views: 852
Re: Confirm Delete Dialog Strangeness
It's not relevant to your question, but the Confirm Delete dialog box is one that I firmly believe should never be dismissed. There are too many variables, depending on the situation, and hiding it for one situation hides it for all of them. I would go a step further. Any dialog with more than two ...
- Tue Feb 27, 2024 11:38 am
- Forum: How To Questions
- Topic: Body Mass in Part
- Replies: 10
- Views: 695
Re: Body Mass in Part
Here's a C# macro that will print the mass of each body in a multi-body part: using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; using System.Runtime.InteropServices; using System; using System.Diagnostics; namespace BodyWeights.csproj { public partial class SolidWorksMacro { /// <...
- Mon Feb 26, 2024 7:57 am
- Forum: SW General
- Topic: Confirm Delete Dialog Strangeness
- Replies: 8
- Views: 852
Confirm Delete Dialog Strangeness
I was helping a user with a part model issue and I watched him delete a feature and noticed that the Confirm Delete dialog didn't appear. Obviously, he had at some point in the past clicked the 'Don't show again' checkbox in this dialog so I had him undo the delete, clear that entry in the system op...
- Mon Feb 26, 2024 7:46 am
- Forum: SW General
- Topic: How can this be possible???
- Replies: 19
- Views: 1705
Re: How can this be possible???
Are you using flexible subassemblies?
- Wed Feb 21, 2024 10:41 am
- Forum: SW General
- Topic: Is it possible to lengthen the reference line of a weld note?
- Replies: 7
- Views: 612
Re: Is it possible to lengthen the reference line of a weld note?
It's hokey, but you can add spaces before/after the weld size value and/or weld length-pitch values:
The downside is that when you go back into the weld symbol editor, it may look like there is no value:
- Mon Feb 19, 2024 8:16 am
- Forum: Macro Library
- Topic: Oddball text question
- Replies: 4
- Views: 560
Re: Oddball text question
What OCR software are you using on the Linux machine?
Also, can you upload one of the misbehaving files?
Also, can you upload one of the misbehaving files?
- Sun Feb 11, 2024 11:11 am
- Forum: 3D Print
- Topic: What is your 3D Printer?
- Replies: 26
- Views: 6734
Re: What is your 3D Printer?
We recently purchased three FormLabs 3+ printers to print high performance ceramic parts. We'll also use it for silicone and other materials in the future. The ceramic material prints slow. Extremely slow. Three days to print and 5 days to burn out and sinter fairly small parts. But, the alternative...
- Fri Feb 09, 2024 11:59 am
- Forum: Macro Library
- Topic: Macro to Initialize Unity and Customs properties
- Replies: 2
- Views: 412
Re: Macro to Initialize Unity and Customs properties
In this line: Debug.Print GetPropertyValue(swModel, prpName) you are calling your GetPropertyValue function with two arguments, but it expects three arguments: Function GetPropertyValue(model As SldWorks.ModelDoc2, prpName As String, prpVal As String) As String The third argument is useless since th...
- Tue Feb 06, 2024 8:08 am
- Forum: API
- Topic: loop with enumerators In VBA
- Replies: 4
- Views: 442
Re: loop with enumerators In VBA
I would like to read all those properties. is it possible to use a loop to get them or do i have to read themone by one with a separate call? something more elegant than copy and paste in excel 100s of lInes, put some code before and after the enumerators and pasting back on the VBA IDE... https://...
- Tue Jan 30, 2024 1:07 pm
- Forum: SolidWorks PDM
- Topic: PDM Icon missing from Notification Area
- Replies: 10
- Views: 1496
Re: PDM Icon missing from Notification Area
Check the task manager and see if explorer.exe or EdmServer.exe are running in elevated mode (you may have to add the 'Elevated' column). This is something that happens on some server operating systems. Maybe Windows 11 is doing something similar. If so, see QA00000125159 in the Knowledge Base for a...
- Tue Jan 30, 2024 7:07 am
- Forum: API
- Topic: macro features: what are they for?
- Replies: 6
- Views: 965
Re: macro features: what are they for?
I am try to understand "macro features" and I probably need a couple of example to better grasp the concept as the documentation is quite difficult (at least for me) to understand and see a practical use. Are they a sort of macro embedded in a 3d file and triggered to do... uh something??...
- Mon Jan 29, 2024 3:34 pm
- Forum: How To Questions
- Topic: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)
- Replies: 7
- Views: 1072
Re: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)
I don't think it can be accessed. There is an SPR requesting the ability to see/change it:
- Sat Jan 27, 2024 6:49 pm
- Forum: API
- Topic: version control for macro development
- Replies: 9
- Views: 1071
Re: version control for macro development
All my batch files are made as shift jis encoded, I tried to add one to a test repository git and the diff tool in git desktop,(the first ui I found) show garbled text which means encoding problems. Can you upload a sample file? I'd like to see how it behaves. Also, you don't really need a program ...
- Fri Jan 26, 2024 1:29 pm
- Forum: SW General
- Topic: SOLIDWORKS Top Ten List - Curated List of Ideas for Busy Users
- Replies: 53
- Views: 6710
Re: SOLIDWORKS Top Ten List - Curated List of Ideas for Busy Users
Current top ten; 1 - ESCAPE Should Terminate Any Process and Return the Model/Drawing to its Previous State (92 votes) This is most likely an impossible task. They don't own the modeling kernel, so they are at the mercy of the people who wrote it. If the modeling kernel doesn't have provisions for ...
- Thu Jan 25, 2024 6:23 pm
- Forum: API
- Topic: version control for macro development
- Replies: 9
- Views: 1071
Re: version control for macro development
I've migrated all of my projects to c# using visual studio community for development and github for version control. Github is a game changer when compared to storage of copies on a network drive. I opted for a self-hosted Gitlab installation. Also, please be aware that VS Community has a pretty re...
- Thu Jan 25, 2024 7:51 am
- Forum: API
- Topic: version control for macro development
- Replies: 9
- Views: 1071
Re: version control for macro development
Switch to C# or VB.NET. They are far more powerful languages and you can use git with them.
- Fri Jan 19, 2024 1:55 pm
- Forum: SW General
- Topic: SolidWorks Installation Manager message
- Replies: 6
- Views: 1743
Re: SolidWorks Installation Manager message
I have seen that as well. I always ignore it and have never had a problem. The KnowledgeBase says to contact your VAR if you still get the message after a reboot:
- Tue Jan 16, 2024 1:08 pm
- Forum: How To Questions
- Topic: How to deploy a patched admIn Image
- Replies: 4
- Views: 818
Re: How to deploy a patched admIn Image
Since you mentioned CAB files, does this mean you are using a compressed admin image? If so, I'm not familiar with the structure of those. However, if the expanded CAB file results in what looks like a normal admin image directory structure, you may want to use the ORCA tool to inspect the PDM clien...
- Tue Jan 16, 2024 7:46 am
- Forum: How To Questions
- Topic: How to deploy a patched admIn Image
- Replies: 4
- Views: 818
Re: How to deploy a patched admIn Image
How did you repackage the .cab file?
- Mon Jan 08, 2024 3:13 pm
- Forum: CAD Agnostic
- Topic: Generating files (STEP, DXF, PDF, etc...)
- Replies: 10
- Views: 3006
Re: Generating files (STEP, DXF, PDF, etc...)
Step files are only required on our end when the part is sent externally which is why most items do not require step files. OK. So, you have non-SW folks determining which files will be routed externally, I assume. An app, or Excel macro using the SW Document Manager API can be used to alter custom...
- Mon Jan 08, 2024 1:57 pm
- Forum: CAD Agnostic
- Topic: Generating files (STEP, DXF, PDF, etc...)
- Replies: 10
- Views: 3006
Re: Generating files (STEP, DXF, PDF, etc...)
So, you create a PDF every time you save a drawing. Is there a reason you don't generate a STEP file (if needed) every time you save a model?
If you wanted to be fancy about it, it could be a macro feature in the model template that looks for the save event and acts accordingly.
If you wanted to be fancy about it, it could be a macro feature in the model template that looks for the save event and acts accordingly.
- Mon Jan 08, 2024 12:03 pm
- Forum: Macro Library
- Topic: File name comparison macro in vault PDM
- Replies: 1
- Views: 999
Re: File name comparison macro in vault PDM
Use SQL to get the list of files from the database server. A query like this: SELECT [Filename] FROM [_EPDM].[dbo].[Documents] WHERE Filename IN ( SELECT replace([Filename],'B.SLDPRT','.SLDPRT') FROM [_EPDM].[dbo].[Documents] WHERE Filename LIKE '%B.sldprt%' ) The query searches for all files that e...
- Thu Jan 04, 2024 12:36 pm
- Forum: How To Questions
- Topic: How to turn off this "feature"?
- Replies: 9
- Views: 2235
- Wed Jan 03, 2024 12:53 pm
- Forum: CAD Admin (Install, PDM, etc)
- Topic: PDM, Is there a user/group state permission to list file but not allow caching it?
- Replies: 10
- Views: 2508
Re: PDM, Is there a user/group state permission to list file but not allow caching it?
Out of sight not so good, out of touch good. They will go looking wherever they can. It seems people will look for something until they find it, even go looking in places they've been told are no longer valid. I would like to catch them before the leave the vault and go out to the network shares. H...
- Wed Jan 03, 2024 11:06 am
- Forum: CAD Admin (Install, PDM, etc)
- Topic: PDM, Is there a user/group state permission to list file but not allow caching it?
- Replies: 10
- Views: 2508
Re: PDM, Is there a user/group state permission to list file but not allow caching it?
Anyway, we have a state for the SE files that are no longer maintained and have been superseded by SW files. So I can use permissions by user group for files in that state. But the permission named "Read file contents" is poorly named IMO, the file doesn't even show up in vault view or se...
- Wed Dec 20, 2023 6:30 pm
- Forum: API
- Topic: Hiding Context toolbar
- Replies: 7
- Views: 1134
Re: Hiding Context toolbar
Why would you want to do that? What are you actually trying to accomplish?
- Tue Dec 19, 2023 9:21 am
- Forum: API
- Topic: Activating solidworks VSTA
- Replies: 6
- Views: 1580
Re: Activating solidworks VSTA
I also have this problem. Did you fix it yet? Read this: https://cadforum.net/viewtopic.php?t=1967 Basically, the SW macro functionality is hardwired to use a particular version of Visual Studio. For SW 2022, the required Visual Studio version was 2015. You cannot use a newer version. I haven't tes...
- Fri Dec 15, 2023 8:21 am
- Forum: SolidWorks PDM
- Topic: Parent is checked out and cannot rollback
- Replies: 9
- Views: 1816
Re: Parent is checked out and cannot rollback
That exact scenario is described in this open SPR, including the bit about the SQL query from S-077839 returning no results.
- Wed Dec 13, 2023 4:21 pm
- Forum: SolidWorks PDM
- Topic: PDM, From which config does the SW PDM add-in display the variable values?
- Replies: 12
- Views: 3627
Re: PDM, From which config does the SW PDM add-in display the variable values?
This may be be relevant: https://support.3ds.com/knowledge-base/?q=docid:QA00000109905 ================= QUESTION Why do custom properties only ever populate a SOLIDWORKS® drawing's SOLIDWORKS PDM® data card '@' tab and not the drawing sheet tabs even when 'update all configurations' is used? ANSWER...
- Tue Dec 12, 2023 3:41 pm
- Forum: 2D Drawings
- Topic: BOM sort (sort on insert)
- Replies: 6
- Views: 1426
Re: BOM sort (sort on insert)
I don't think you can. You can save the sort settings to the template, but you must manually apply the saved settings in new documents that use the template. See:
https://help.solidworks.com/2024/Englis ... etting.htm
https://help.solidworks.com/2024/Englis ... etting.htm
- Fri Dec 01, 2023 3:52 pm
- Forum: How To Questions
- Topic: How to make a assembly show as a part on a BOM
- Replies: 4
- Views: 1130
Re: How to make a assembly show as a part on a BOM
From what you've written, it's not clear what you have or what you are trying to do. It sounds like you have an assembly model of a hinge. Let's call it HINGE.SLDASM. And this assembly is composed of two part files: one for each half of the hinge. Let's call them LEAF-A.SLDPRT and LEAF-B.SLDPRT. The...
- Fri Dec 01, 2023 3:03 pm
- Forum: API
- Topic: Solidworks PDM API - add new folder
- Replies: 3
- Views: 1001
Re: Solidworks PDM API - add new folder
Is it correct that the PDM API can only work with VB.Net and not with VBA? That is not correct. You can use the PDM API from VBA. To create a folder, you can use CreateFolderPath or AddFolder. Both are methods of the IEdmFolder5 interface. You can get a starting folder by using the RootFolder prope...
- Fri Nov 10, 2023 8:37 am
- Forum: SW General
- Topic: CAD Admin Dashboard is back
- Replies: 4
- Views: 710
Re: CAD Admin Dashboard is back
The Admin Dashboard is still accessed through the old method described here:AlexLachance wrote: ↑Fri Nov 10, 2023 8:09 am Oh, so you're dashboard is much better then this?
image.png
I also have somehow like a dual profile?
image.png
https://help.solidworks.com/2021/englis ... hboard.htm
- Thu Nov 09, 2023 9:11 am
- Forum: SW General
- Topic: Drawings packages - best practice
- Replies: 12
- Views: 3199
Re: Drawings packages - best practice
You may want to consider a completely different approach. Rather than using pack and go for the entire project (which probably duplicates a lot of files that you won't be changing), just pack and go (or Save As) the top assembly. As you work on the new design, any part/assy that you need to make cha...
- Wed Nov 08, 2023 2:37 pm
- Forum: How To Questions
- Topic: Replace all instances of a file on a network drive with new version
- Replies: 7
- Views: 1072
Re: Replace all instances of a file on a network drive with new version
Any ideas to do that fast? I am sure i can work it out but it will be slow in stepping through each folder. :D Why do you believe it will be slow? Have you tested? With a C# macro I can retrieve and store the name of every file on my desktop and all subdirectories (5328 files in 739 directories) in...
- Mon Nov 06, 2023 7:38 am
- Forum: SolidWorks PDM
- Topic: explorer BOM tab stuck at loading
- Replies: 3
- Views: 953
- Fri Nov 03, 2023 7:57 am
- Forum: CAD Agnostic
- Topic: image to dxf
- Replies: 10
- Views: 1603
Re: image to dxf
Might have a look at InkScape. I was thinking it had this capability. Yep. Inkscape does a pretty good job. Here's my version using split line features: image.png And with the red as a Boss-Extrude and the black as a Cut-Extrude: image.png With some assistance from a video on separating colors: htt...
- Thu Nov 02, 2023 11:28 am
- Forum: SolidWorks FAQ
- Topic: Solidworks Sequential Numbering
- Replies: 10
- Views: 8440
- Thu Oct 26, 2023 12:54 pm
- Forum: How To Questions
- Topic: Variable boolstatus for InsertMateReference
- Replies: 2
- Views: 584
Re: Variable boolstatus for InsertMateReference
If you want to preselect geometry and then run you macro, those lines aren't needed. Instead, you need to set the mark for each of your selections so that they have the correct values for your primary, secondary and tertiary selections. Delete those three lines and replace them with this: Dim selMgr...
- Wed Oct 25, 2023 10:44 am
- Forum: Macro Library
- Topic: Macro for Toggling Transparency of Components
- Replies: 20
- Views: 2116
Re: Macro for Toggling Transparency of Components
Hello forum, My 1st post here! looking for a macro which I think might be helpful for all actually. So you know how you can use tab and shift-tab to hide & unhide hovered components; love that feature, super convenient, right? Can something like that be done but for transparency (basically a to...
- Wed Oct 25, 2023 10:23 am
- Forum: Macro Library
- Topic: Macro for Toggling Transparency of Components
- Replies: 20
- Views: 2116
- Mon Oct 23, 2023 11:53 am
- Forum: CAD Admin (Install, PDM, etc)
- Topic: PDM, archive server; do the archive folders >need< to be local to that server?
- Replies: 2
- Views: 711
Re: PDM, archive server; do the archive folders >need< to be local to that server?
SAN is not tested by SW and they don't make recommendations about such setups, but it is not prohibited.
See S-025962 in the Knowledge Base.
See S-025962 in the Knowledge Base.
- Thu Oct 19, 2023 3:39 pm
- Forum: CAD Admin (Install, PDM, etc)
- Topic: PDM and File Explorer
- Replies: 19
- Views: 11208
- Thu Oct 19, 2023 11:18 am
- Forum: CAD Admin (Install, PDM, etc)
- Topic: PDM and File Explorer
- Replies: 19
- Views: 11208
Re: PDM and File Explorer
Mean time I'm still trying to explain how the preferred method of using the vault (Search tool) doesn't show up in Windows Start Menu, and is hidden away in the installer folder. Like they thought to themselves, we'll tell them "Don't browse in the vault, use search tool." then we'll make...
- Tue Oct 17, 2023 11:16 am
- Forum: API
- Topic: File name of a part/assembly selected in a BOM
- Replies: 2
- Views: 597
Re: File name of a part/assembly selected in a BOM
TableAnnotation::GetCellRange() in conjunction with BOMTableAnnotation::GetComponents() will do the trick. Here's some sample code in C#: ModelDoc2 mDoc = swApp.ActiveDoc as ModelDoc2; SelectionMgr selMgr = mDoc.SelectionManager as SelectionMgr; int type = selMgr.GetSelectedObjectType3(1, -1); if (t...
- Thu Sep 21, 2023 11:46 am
- Forum: SW General
- Topic: Scale tool doesn't work when user isn't paying attention
- Replies: 16
- Views: 1892
Re: Scale tool breaks measurements
You might be better served by using the Move Face command. Here's some threads: image.png You can select the minor/major dia faces and the crown/root faces and use Move Face to offset them a small amount: image.png which gives you a slimmed down thread: image.png Here are two bodies showing the pre ...
- Thu Sep 21, 2023 9:29 am
- Forum: How To Questions
- Topic: Simulation not running
- Replies: 3
- Views: 713
Re: Simulation not running
Your body has been set to rigid, which means it will not deform. A deformable body has the circled icon and gives the results like this: image.png A body set to rigid has the circled icon and results like yours: image.png To correct the problem, right click the body in the tree and select 'Make defo...