Search found 32 matches
- Wed Oct 30, 2024 9:36 am
- Forum: API
- Topic: How to enable "Thread class" in Hole Wizard Property Manager
- Replies: 3
- Views: 383
Re: How to enable "Thread class" in Hole Wizard Property Manager
ThreadClass Property (IWizardHoleFeatureData2) requires a string value: One of the following thread classes: 1B 2B 3B This property is relevant only for the ANSI inch standard. see https://help.solidworks.com/2024/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.iwizar...
- Tue Oct 29, 2024 8:10 am
- Forum: How To Questions
- Topic: Set "Bill of Materials" table properties with VBA code
- Replies: 4
- Views: 379
Re: Set "Bill of Materials" table properties with VBA code
Try that instead of the failing line:
Dim swBomFeat As BomFeature
Set swBomFeat = swFeat.GetSpecificFeature2
Dim swBomFeat As BomFeature
Set swBomFeat = swFeat.GetSpecificFeature2
- Mon Oct 28, 2024 7:34 am
- Forum: How To Questions
- Topic: Set "Bill of Materials" table properties with VBA code
- Replies: 4
- Views: 379
Re: Set "Bill of Materials" table properties with VBA code
PartConfigurationGrouping Property (IBomFeature)
-> https://help.solidworks.com/2024/englis ... uping.html
-> https://help.solidworks.com/2024/englis ... uping.html
- Fri Oct 04, 2024 7:02 am
- Forum: API
- Topic: Assembly "Component Display" setting
- Replies: 2
- Views: 438
Re: Assembly "Component Display" setting
I think the official way is to use DisplayMode Property (IModelDocExtension).
However, much easier (and probably also working for you) is to use that:
swApp.runcommand 2567, ""
Just preselect the desired components and then run that command.
However, much easier (and probably also working for you) is to use that:
swApp.runcommand 2567, ""
Just preselect the desired components and then run that command.
- Mon Jul 01, 2024 4:38 am
- Forum: API
- Topic: AddToDB to true no longer prevents sketch snapping (SW2022-2024 specific)
- Replies: 1
- Views: 747
Re: AddToDB to true no longer prevents sketch snapping (SW2022-2024 specific)
Thanks for the heads up
- Mon Jun 24, 2024 4:20 am
- Forum: API
- Topic: Renaming a Mate with VBA
- Replies: 18
- Views: 1900
Re: Renaming a Mate with VBA
Try UpdateFeatureTree Method (IFeatureManager) -> https://help.solidworks.com/2022/englis ... eTree.html
- Mon Jun 10, 2024 4:49 am
- Forum: API
- Topic: Get Template Anchor Points
- Replies: 2
- Views: 762
Re: Get Template Anchor Points
TableAnchor Property (ISheet) (https://help.solidworks.com/2024/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ISheet~TableAnchor.html) -> Position Property (ITableAnchor) (https://help.solidworks.com/2024/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWork...
- Mon Mar 04, 2024 7:33 am
- Forum: SW General
- Topic: SOLIDWORKS 2023 confirmed bugs
- Replies: 66
- Views: 16120
Re: SOLIDWORKS 2023 confirmed bugs
Another drawing related issue introduced with the new transparency option for views BR Article: BR10000354471 Status: Opening transparency related problem (again: this was supposed to be a new enhancement in 2023!) Drawing templates do not save the new transparency setting or the new settings is no...
- Tue Feb 13, 2024 6:54 am
- Forum: 2D Drawings
- Topic: new drawing disable new model view on creation
- Replies: 15
- Views: 1949
Re: new drawing disable new model view on creation
Maybe I'm getting it wrong. What exactly would you expect to happen? Do you just want to place a view without the model view PM pages? Maybe you should use the view palette then.
- Mon Feb 12, 2024 5:33 am
- Forum: 2D Drawings
- Topic: new drawing disable new model view on creation
- Replies: 15
- Views: 1949
Re: new drawing disable new model view on creation
That's strange. I've just tested it in both 2022 SP5 and 2023 SP5 and in both versions it worked well.
- Mon Feb 12, 2024 4:48 am
- Forum: 2D Drawings
- Topic: new drawing disable new model view on creation
- Replies: 15
- Views: 1949
Re: new drawing disable new model view on creation
[HKEY_CURRENT_USER\Software\SolidWorks\SOLIDWORKS 20xx\General]
"Start Insert Model View command for a New Drawing"=dword:00000000
"Start Insert Model View command for a New Drawing"=dword:00000000
- Thu Dec 07, 2023 5:37 am
- Forum: API
- Topic: How to select coordinate system plane using API
- Replies: 2
- Views: 1324
Re: How to select coordinate system plane using API
This seems to be a limitation. I also didn't find a way to select the COORDSYS planes or axes via API.
- Wed Sep 20, 2023 2:12 am
- Forum: How To Questions
- Topic: mates delete themselves
- Replies: 13
- Views: 2622
Re: mates delete themselves
Please check if the problem does not occur when Tools > Options > Performance > SmartMate sensitivity option is greater than 'Off'.
- Tue Apr 18, 2023 7:29 am
- Forum: SW General
- Topic: Display configurations with the same name as one item
- Replies: 9
- Views: 2370
Re: Display configurations with the same name as one item
There are newer hotfixes available that also contain that fix, e.g. 1197644. Try to get that one instead.
- Wed Mar 22, 2023 9:04 am
- Forum: SW General
- Topic: Display configurations with the same name as one item
- Replies: 9
- Views: 2370
Re: Display configurations with the same name as one item
There is a hotfix (SPR 1243187) for 2022 SP 5 available. The problem doesn't exist in 2023 SP0.1, however it's back in 2023 SP1 and will be fixed again in 2023 SP2 which should be available in a few weeks time.
- Fri Mar 10, 2023 10:47 am
- Forum: API
- Topic: method: Convert to body
- Replies: 3
- Views: 927
Re: method: Convert to body
Maybe that will help you (although I'm not sure what you want to do): viewtopic.php?t=1968
I've just seen that the solution there also has been posted by JSculley
I've just seen that the solution there also has been posted by JSculley
- Fri Jan 13, 2023 3:43 am
- Forum: SW General
- Topic: Tree Display 2022
- Replies: 20
- Views: 3007
Re: Tree Display 2022
SPR 1243259 "User Interface - Feature Manager: Feature Tree name changes if component description is displayed. Switched order and missing quotes."
-> reported as implemented in 2023 SP1 (we will see in a few weeks)
-> reported as implemented in 2023 SP1 (we will see in a few weeks)
- Wed Nov 23, 2022 5:58 am
- Forum: How To Questions
- Topic: How to Cut Surface Elements
- Replies: 4
- Views: 730
Re: How to Cut Surface Elements
Try the trim command: https://help.solidworks.com/2022/englis ... URFACE.htm
- Fri Nov 11, 2022 2:52 am
- Forum: SW General
- Topic: Why does SolidWorks create flat patterns for sheet metal parts without bends?
- Replies: 11
- Views: 2549
Re: Why does SolidWorks create flat patterns for sheet metal parts without bends?
I guess one reason is simplicity as bnemec mentioned. The other reason may be that SOLIDWORKS at the point of view creation of course cannot know if bends will be added later to the part. If the view is already showing the flat pattern configuration it won't be necessary to change it later.
- Fri Nov 04, 2022 4:17 am
- Forum: How To Questions
- Topic: Macro – Save as STEP
- Replies: 2
- Views: 3049
Re: Macro – Save as STEP
Looks like our tool DPS JobBox could be helpful: https://www.dps-software.de/produkte/produktdatenmanagement/dps-tools-jobbox-suite It's a software that brings a collection of actions (like "Start SOLIDWORKS", "open a document", "run a macro", ...) that can be organized...
- Wed Oct 12, 2022 2:51 am
- Forum: SW General
- Topic: SW 2022 stability
- Replies: 15
- Views: 9338
Re: SW 2022 stability
There is a known stability issue in 2022 SP0 to SP3.1 (SPR 1236674) that as been fixed in 2022 SP4. For SP3.1 there is a hotfix available (see https://www.solidworks.com/sw/support/hotfixes.htm).
Maybe you want to try that first.
Maybe you want to try that first.
- Fri Jun 17, 2022 5:00 am
- Forum: SW General
- Topic: Component Reference (ASM) data populating into a DWG BOM
- Replies: 1
- Views: 594
Re: Component Reference (ASM) data populating into a DWG BOM
I wasn't able to reproduce that in 2018 SP5 unless I've referenced that column to the component reference.
If you double-click the header of that column what does it show as column type?
If you double-click the header of that column what does it show as column type?
- Fri May 20, 2022 6:38 am
- Forum: SW General
- Topic: SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
- Replies: 4
- Views: 787
Re: SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
You could try to enable "Update model graphics when saving files" in the assembly system options (in my test cases it worked reliably only for referenced documents that weren't open in their own window when saving the assembly). If you have multiple configurations in the documents you coul...
- Tue Mar 15, 2022 3:05 am
- Forum: How To Questions
- Topic: 500m extrusion limit??? workaround?
- Replies: 6
- Views: 1277
Re: 500m extrusion limit??? workaround?
The limit is 1km for parts (500m in each main direction from the origin). Maybe you can move your geometry to keep it inside the boundaries.
BTW: Assemblies can be larger than 1km: https://files.solidworks.com/Supportfil ... df#page=70
BTW: Assemblies can be larger than 1km: https://files.solidworks.com/Supportfil ... df#page=70
- Thu Feb 10, 2022 3:55 am
- Forum: How To Questions
- Topic: Convert Entities
- Replies: 14
- Views: 2424
Re: Convert Entities
I think currently the UI doesn't provide a way to do it but API does. :D Option Explicit Sub main() Dim swApp As SldWorks.SldWorks Dim swModel As ModelDoc2 Dim swSelMgr As SelectionMgr Dim swFace As Face2 Dim EdgeArr() As Edge Dim swSketch As Sketch Dim swSketchManager As SketchManager Set swApp = A...
- Mon Feb 07, 2022 8:55 am
- Forum: How To Questions
- Topic: BOM
- Replies: 2
- Views: 842
Re: BOM
One could potentially automate the process you described but still the BOM including thumbnails would not be associative to the model but only an OLE object.
You could vote for enhancement SPR 1182235: Ability to add a column with thumbnail previews of SW files to the drawing BOM table
You could vote for enhancement SPR 1182235: Ability to add a column with thumbnail previews of SW files to the drawing BOM table
- Mon Feb 07, 2022 4:30 am
- Forum: SW General
- Topic: How to prevent sheet metal coordinates being exported to DXF?
- Replies: 4
- Views: 1049
- Mon Feb 07, 2022 2:51 am
- Forum: SW General
- Topic: How to prevent sheet metal coordinates being exported to DXF?
- Replies: 4
- Views: 1049
Re: How to prevent sheet metal coordinates being exported to DXF?
This is probably SPR 1229251 "Sheet Metal - Export DXF DWG - if 'view sketches' is enabled, additional lines are added around the origin".
Please try to check "Views -> Hide / Show -> Hide All Types" before exporting.
Please try to check "Views -> Hide / Show -> Hide All Types" before exporting.
- Fri Feb 04, 2022 10:16 am
- Forum: SW General
- Topic: How to add View Mates to a guesture?
- Replies: 3
- Views: 568
Re: How to add View Mates to a guesture?
Code: Select all
Sub main()
Dim swApp As SldWorks.SldWorks
Set swApp = Application.SldWorks
swApp.runcommand 683, ""
End Sub
- Thu Feb 03, 2022 2:25 am
- Forum: SW General
- Topic: Convert Entities (Points)
- Replies: 4
- Views: 1302
Re: Convert Entities (Points)
You're looking for the derived sketch: https://help.solidworks.com/2022/englis ... etches.htm
- Wed Jan 26, 2022 8:31 am
- Forum: SW General
- Topic: How can I change shaded cosmetic threads color?
- Replies: 7
- Views: 1299
Re: How can I change shaded cosmetic threads color?
Be careful with the following and make sure you have a backup of the modified file: Edit the file "<SOLIDWORKS install dir>\data\Images\shaders\diffuse\thread.png". The brighter you'll make the gray area the brighter your cosmetic threads will be. You don't even have to restart SOLIDWORKS ...
- Wed Nov 17, 2021 10:06 am
- Forum: API
- Topic: get and set state of rotate about scene floor
- Replies: 1
- Views: 1416
Re: get and set state of rotate about scene floor
Hi colt, you could check "HKCU\SOFTWARE\SolidWorks\SOLIDWORKS 2020\General" for the value of "View Rotate About Vertical" (1 is on, 0 is off). Unfortunately SOLIDWORKS seems to update the registry only after opening the system options dialog and exiting it with OK or by closing t...