Search found 253 matches
- Mon Oct 24, 2022 4:54 pm
- Forum: API
- Topic: Programmatically Determine if Configuration is From Design Table
- Replies: 6
- Views: 534
Re: Programmatically Determine if Configuration is From Design Table
I can't see where that's exposed in the API. It's obviously stored somewhere because the tree shows a different icon for DT controlled configs, but I don't see it anywhere.
- Mon Oct 24, 2022 1:24 pm
- Forum: SW General
- Topic: CL in Drawings - Holes Only?
- Replies: 11
- Views: 678
Re: CL in Drawings - Holes Only?
I also agree with Glenn's auto insert settings. However, they are entirely irrelevant to your question since you're asking about centerlines and not Center Marks.
Unfortunately, there's no way to specify that only holes get centerlines.
Unfortunately, there's no way to specify that only holes get centerlines.
- Wed Oct 05, 2022 9:34 pm
- Forum: How To Questions
- Topic: Pack and Go 2023 Duplicate filenames in red?
- Replies: 12
- Views: 3805
Re: Pack and Go 2023 Duplicate filenames in red?
Because this should never be done, ever. I would be glad PnG is preventing it from even trying to copy the structure until this issue is fixed in the files. Did I mention this should never be done, ever? Of course it shouldn't be done, but I didn't want it to copy the files. I didn't even want it t...
- Fri Sep 30, 2022 2:29 pm
- Forum: SW General
- Topic: What are your most impressive tricks of Solidworks
- Replies: 162
- Views: 63471
Re: What are your most impressive tricks of Solidworks
Interesting... How is this different from using convert entity on face and trim it? It's the same, just a little quicker. SW isn't using a different function (offset vs convert). The difference is between selecting a face vs selecting edges and converting them. Somehow that "convert" oper...
- Thu Sep 29, 2022 5:25 pm
- Forum: SW General
- Topic: Print Packets
- Replies: 4
- Views: 430
Re: Print Packets
Putting all parts and assemblies into one SW file is terrible. Highly recommend against this. Combining all PDFs in a folder into a single multipage PDF is pretty trivial with the right tool. Irfanview is free and can do this in a few seconds. Doesn't sound like that should be too much work for Prod...
- Thu Sep 22, 2022 4:55 pm
- Forum: SW General
- Topic: Title block table not updating
- Replies: 7
- Views: 1109
Re: Title block table not updating
OK, that was the ticket... Thanks for the push to revisit. My issue was using the Equation button to pick the value, although I still don't understand why it doesn't update properly when you do so. I would think either way should be correct every time. Anyway, when you first select a cell, the popup...
- Thu Sep 22, 2022 4:30 pm
- Forum: SW General
- Topic: Title block table not updating
- Replies: 7
- Views: 1109
Re: Title block table not updating
Thanks for checking it... I tried both with a macro that we usually use and through the custom properties dialog. Either way the table never updated until I double-clicked the cell. I wonder... How did you add the links? Did you use the Equation button and pick properties from the dropdown, or did y...
- Thu Sep 22, 2022 3:49 pm
- Forum: SW General
- Topic: Title block table not updating
- Replies: 7
- Views: 1109
Re: Title block table not updating
Thanks, but...
Does nobody else use these things? I'm not necessarily looking for a diagnosis yet. Even a "They work just fine for me" would be a start. Or, if they don't update for anyone else, it's SR time.
Does nobody else use these things? I'm not necessarily looking for a diagnosis yet. Even a "They work just fine for me" would be a start. Or, if they don't update for anyone else, it's SR time.
- Wed Sep 21, 2022 2:03 pm
- Forum: SW General
- Topic: Title block table not updating
- Replies: 7
- Views: 1109
Title block table not updating
Hey folks, we're trying to get into the whole MBD scene here. One thing we're trying is inserting a Title Block Table (Insert->Tables->Title block table) into the Notes Area of parts (not drawings). I've created a title block table that links to the custom properties of the part. The link works fine...
- Sun Sep 18, 2022 6:35 pm
- Forum: API
- Topic: BOM Sorting Issue
- Replies: 7
- Views: 1239
Re: BOM Sorting Issue
Have you tried doing a manual sort through the UI using he exact same parameters? How is it inconsistent? Does the same BOM sort the same every time, just not as you expect? Or does the same BOM sort differently if you run it twice? You've specified literal sort order. This will cause 10, 11, 12, et...
- Wed Sep 14, 2022 2:26 pm
- Forum: How To Questions
- Topic: How to Enter Dimension Value Automatically When Creating Sketch Dimensions?
- Replies: 4
- Views: 613
Re: How to Enter Dimension Value Automatically When Creating Sketch Dimensions?
The setting Glenn Schroeder mentioned enables the functionality where a dimension and numeric input box pops up during sketch entity creation. , allowing you to immediately specify both the length and value of a dimension driving that length. image.png The setting I mentioned enables you to enter a ...
- Wed Sep 14, 2022 1:42 pm
- Forum: How To Questions
- Topic: How to Enter Dimension Value Automatically When Creating Sketch Dimensions?
- Replies: 4
- Views: 613
- Wed Sep 14, 2022 8:48 am
- Forum: API
- Topic: Get doc active configuration no matter what is loaded
- Replies: 1
- Views: 370
Re: Get doc active configuration no matter what is loaded
To read the file on disk you can use the Document Manager API to get a swDMdocument, get its ConfigurationManager, and use GetActiveConfigurationName.
- Tue Sep 13, 2022 11:23 am
- Forum: Macro Library
- Topic: Multiple (2 or More!) monitor support
- Replies: 9
- Views: 1981
Re: Multiple (2 or More!) monitor support
Here's an updated version. Changes: It supports differently-sized or aligned monitors in the vertical direction, or any portion of the SW window off the viewable area. If some of the SW window is off the viewable area of the target monitor, the macro will compensate for that and not re-size the docu...
- Sun Sep 11, 2022 9:25 pm
- Forum: API
- Topic: Doesn't work: GetAmbientLightProperties or SetAmbientLightProperties
- Replies: 6
- Views: 548
Re: Doesn't work: GetAmbientLightProperties or SetAmbientLightProperties
The Name is an input to the function. You have 7 light sources in your model. You have to specify the name of the light source you want. You will need to run GetAmbientLightProperties 7 times, each time with "Name" having the value of one of the names you retrieved using GetLightSourceName.
- Sat Sep 10, 2022 7:00 pm
- Forum: API
- Topic: Doesn't work: GetAmbientLightProperties or SetAmbientLightProperties
- Replies: 6
- Views: 548
Re: Doesn't work: GetAmbientLightProperties or SetAmbientLightProperties
What are you expecting to get from the function? It returns true or false. Do you understand what ByRef means? You have to pass variables into the function to receive all the values.
- Fri Sep 09, 2022 11:49 am
- Forum: API
- Topic: VBA True or Not False
- Replies: 4
- Views: 677
Re: VBA True or Not False
Please see this article in SW help. Short summary:
Do not use logical operators with returns of these functions. Always compare returned value to False.
https://help.solidworks.com/2019/englis ... _types.htm
Do not use logical operators with returns of these functions. Always compare returned value to False.
https://help.solidworks.com/2019/englis ... _types.htm
- Fri Sep 02, 2022 8:25 am
- Forum: SW General
- Topic: Selecting components instead of faces
- Replies: 21
- Views: 3104
- Thu Sep 01, 2022 3:20 pm
- Forum: SW General
- Topic: Script Error
- Replies: 3
- Views: 485
Re: Script Error
//alert( "Error obtaining SwHtmlControl interface. 'swHTMLControl.dll' must be registered. SPR 162520 will get this registered for everyone, or see JPS.");
- Thu Sep 01, 2022 9:34 am
- Forum: SW General
- Topic: Selecting components instead of faces
- Replies: 21
- Views: 3104
Re: Selecting components instead of faces
Map this macro to a shortcut key. After you select a face or edge etc, hit the key. It will un-select the face/edge/etc and select the component instead. It only acts on the most recent selection, any previous selections are unaffected. Depending on your workflow, you may be needing to select the to...
- Thu Sep 01, 2022 8:58 am
- Forum: SW General
- Topic: SWX 2023 -- Whats New
- Replies: 22
- Views: 2282
Re: SWX 2023 -- Whats New
image.png Pretty sure this is going to be a game changer for us. We build assembly machines, and often need to show the workpiece in position with phantom line font, but show what's behind it as object lines as though the component wasn't there. This usually requires an alternate position view, whi...
- Wed Aug 31, 2022 8:27 pm
- Forum: How To Questions
- Topic: Map "Show with dependents" to hotkey
- Replies: 5
- Views: 655
Re: Map "Show with dependents" to hotkey
Looking at the code again, one of the additional complications that the macro does is automatically select the top level assembly if nothing is already selected.
- Wed Aug 31, 2022 5:19 pm
- Forum: How To Questions
- Topic: Map "Show with dependents" to hotkey
- Replies: 5
- Views: 655
Re: Map "Show with dependents" to hotkey
The simplest is actually to right-click and hit "W". You do have to click to select it after all. Might as well right-click instead of left. All of the items in the right-click menu have a letter you can use to activate them. You can see that letter by going all the way to the bottom of th...
- Thu Aug 25, 2022 10:09 am
- Forum: API
- Topic: How to getting access to and use features in other AddIns
- Replies: 5
- Views: 575
Re: How to getting access to and use features in other AddIns
You have to ask SigmaTube.
- Tue Aug 23, 2022 1:38 pm
- Forum: How To Questions
- Topic: Pack and Go 2023 Duplicate filenames in red?
- Replies: 12
- Views: 3805
Re: Pack and Go 2023 Duplicate filenames in red?
Pack and Go is bugged - 2022 is the same. If you have an assembly that references more than one file with the same name (for example, Screw.sldprt that's stored in multiple different locations), PnG will never allow you to proceed. Even if these files are de-selected for copying. Even if these same-...
- Mon Aug 22, 2022 8:25 pm
- Forum: SW General
- Topic: Modelling negative space between components?
- Replies: 40
- Views: 2568
Re: Modelling negative space between components?
Wow... Is Frederick the only person here who realizes that so much time is being spent analyzing the trees that the forest is being completely missed? The ONLY thing that matters for bouyancy force is the external volume. That means the volume of whater that runs out on the ground when you force the...
- Mon Aug 08, 2022 11:36 am
- Forum: Macro Library
- Topic: Multiple (2 or More!) monitor support
- Replies: 9
- Views: 1981
Re: Multiple (more than 2) monitor support
Off topic, but I would like to see/hear more about this. I try to keyboard my way around the command managers but I'm not doing very good. For example, in the selection boxes, sometimes pressing delete key will remove the selected object from the list, sometimes I have to right click and delete/rem...
- Mon Aug 08, 2022 10:37 am
- Forum: Macro Library
- Topic: Multiple (2 or More!) monitor support
- Replies: 9
- Views: 1981
Re: Multiple (more than 2) monitor support
Just got this configured on my machine and it works just as described. It doesn't seem to re-draw the border when a full-size window is moved left or right, but besides that slight graphical oddity this is likely something I'll use in my modeling. Thanks Josh, you continually provide some cool stuf...
- Mon Aug 08, 2022 9:07 am
- Forum: Macro Library
- Topic: Multiple (2 or More!) monitor support
- Replies: 9
- Views: 1981
Multiple (2 or More!) monitor support
Someone on the Swamp was complaining recently about multiple monitor support for SW. Basically (as far as I know) the only real "support" there is for multiple monitors is the "span" button that will spread the main SW application across two monitors and the little left and right...
- Wed Jul 13, 2022 10:15 pm
- Forum: SW General
- Topic: Why do converted .stp files often have split lines in them?
- Replies: 4
- Views: 1593
Re: Why do converted .stp files often have split lines in them?
I believe it depends on how the STP file was exported. SolidWorks has export options for STP files to do this. The terminology is "Split periodic faces". A full understanding (beyond what the help file here states) prolly requires a lotta math. https://help.solidworks.com/2016/english/Soli...
- Wed Jul 06, 2022 3:56 pm
- Forum: How To Questions
- Topic: assembly feature patterns
- Replies: 13
- Views: 1535
Re: assembly feature patterns
You may have to edit the feature scope to include all components instead of "selected components"
- Mon Jun 06, 2022 11:43 am
- Forum: API
- Topic: Macros and Visual Studio
- Replies: 8
- Views: 1255
Re: Macros and Visual Studio
Unfortunately, VSTA seems to be some sort of bastard child. When it first came out, I thought it was gonna be the bees knees, but I ended up having stability problems using it where the same thing in VBA ran just fine. I read of real programmers having issues with it as well - specifically Artem and...
- Fri May 27, 2022 2:26 pm
- Forum: Catia and 3DX
- Topic: Does anyone actually use 3DExperience in a productive manner?
- Replies: 1288
- Views: 245813
Re: Does anyone actually use 3DExperience? Still waiting.......
Of course, appreciated the joke. No offense received.mattpeneguy wrote: ↑Fri May 27, 2022 11:48 am
And it was a joke...Or it was meant to be, maybe it wasn't funny, but I meant it to be and definitely didn't mean any offense.
- Fri May 27, 2022 9:46 am
- Forum: Catia and 3DX
- Topic: Does anyone actually use 3DExperience in a productive manner?
- Replies: 1288
- Views: 245813
Re: Does anyone actually use 3DExperience? Still waiting.......
Hopefully the sarcasm is tempered with sufficient useful information to the point where my participation is at least chaotic neutral...
- Wed May 25, 2022 10:16 am
- Forum: SW General
- Topic: Move/Copy Body oddity
- Replies: 25
- Views: 3237
Move/Copy Body oddity
Some weirdness today... I downloaded a parasolid model of a vendor part. Imported to .sldprt (none of that 3DInterconnnect crap). I didn't like how it was positioned in space relative to the primary planes, so I selected all the bodies and did a move/copy body feature to reposition, using the "...
- Thu May 19, 2022 5:50 pm
- Forum: SW General
- Topic: SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
- Replies: 4
- Views: 508
Re: SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
Nope, nothing screwy like that. A lot of these assemblies are ones I created myself. When you open them in SW nothing appears different or amiss - nothing suppressed or anything. All you have to do to restore the tess data is just open the file, save it, and close it. I thought maybe the tess data w...
- Thu May 19, 2022 1:41 pm
- Forum: How To Questions
- Topic: Solidworks BOM help needed
- Replies: 19
- Views: 2771
Re: Solidworks BOM help needed
We typically approach it from the other direction. The BOM is Parts Only (which by default shows every part), but then for bought-in subassemblies that don't' need to show individual components, we set the option that Mike specified above to "Hide".
- Thu May 19, 2022 1:24 pm
- Forum: SW General
- Topic: SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
- Replies: 4
- Views: 508
SW2022 SP2 (Maybe SP1?) sometimes not saving Tessellation data in Assemblies
Has anyone here experienced this? We updated a month or two ago and didn't have any issues during the design process. However, those projects are now hitting the assembly floor. Our assembly techs use eDrawings to open the assemblies directly as they do their work, and we've found that quite a few o...
- Sat May 07, 2022 9:34 pm
- Forum: API
- Topic: How to identify the "parent" of a Centermark?
- Replies: 1
- Views: 352
Re: How to identify the "parent" of a Centermark?
Meh, I'll post it here too for posterity. Sub main() Dim swApp As SldWorks.SldWorks Dim swDwg As SldWorks.DrawingDoc Dim swAnnot As SldWorks.Annotation Dim swView As SldWorks.View Dim swEnt As SldWorks.Entity Set swApp = Application.SldWorks Set swDwg = swApp.ActiveDoc Set swView = swDwg.GetFirstVie...
- Thu Feb 24, 2022 3:45 pm
- Forum: SW General
- Topic: Tone-deafness has reached a new high...
- Replies: 8
- Views: 813
Tone-deafness has reached a new high...
Aseninity level: Legendary!
- Sat Feb 19, 2022 7:23 pm
- Forum: API
- Topic: How to improve the speed of SW selection API
- Replies: 7
- Views: 1006
Re: How to improve the speed of SW selection API
turn off graphics update
- Fri Feb 11, 2022 7:26 pm
- Forum: API
- Topic: Finding specific faces of inserted parts
- Replies: 1
- Views: 414
Finding specific faces of inserted parts
I'm wanting to use InsertPart3 to stick a derived part into another part at a few places. I'd like to use mate constraints rather than just setting the transform so that these inserted bodies move appropriately when the design changes. I see how to add mate constraints to the DerivedPartFeatureData,...
- Thu Jan 27, 2022 7:51 pm
- Forum: How To Questions
- Topic: "Explode" a parametric annotation
- Replies: 6
- Views: 635
Re: "Explode" a parametric annotation
Is this something you need to do a lot? Here is a dumb little macro that will do what you're looking for. Just select any note and run it. Dim swApp As SldWorks.SldWorks Dim swSelMgr As SldWorks.SelectionMgr Dim swNote As SldWorks.Note Sub main() Set swApp = Application.SldWorks Set swSelMgr = swApp...
- Thu Jan 20, 2022 8:54 pm
- Forum: How To Questions
- Topic: Equation driven curve
- Replies: 9
- Views: 1106
Re: Equation driven curve
Based on the sketch you posted, you have a spiral on a portion of a sphere. I searched: equation of spiral on sphere and the first result was: https://www.intmath.com/blog/mathematics/how-to-find-the-length-of-a-spherical-spiral-10254#:~:text=There%20are%20about%208%20spirals,0.5%20%C3%97%201.5%20%3...
- Sat Dec 18, 2021 9:00 am
- Forum: SW General
- Topic: Initial Thoughts on SW2022
- Replies: 34
- Views: 3453
Re: Initial Thoughts on SW2022
I don't have it yet, but the last item you mentioned above is going to be a huge help. I'm not sure the thing about selecting temporary axes is going to be so helpful. I don't need to select axes very often, but when I do it's easy to toggle them on and off. As for selecting other reference geometry...
- Fri Dec 10, 2021 8:38 am
- Forum: How To Questions
- Topic: How to make a library Part always excluded from BOM?
- Replies: 6
- Views: 990
Re: How to make a library Part always excluded from BOM?
You could also insert the library part into the deckplate part. If you need a version of the deckplate with no texture, you can add a config with the library part suppressed.
- Wed Dec 08, 2021 9:56 am
- Forum: API
- Topic: set hole wizard hole size for given configuration scope
- Replies: 9
- Views: 1438
Re: set hole wizard hole size for given configuration scope
I don't see anything in the API help about specifying configs when modifying these feature parameters - either the hole wizard or the weldment angle. I've never tried to do that myself in the past, but I'd say if your code works for "This configuration" you're probably going to have to act...
- Wed Aug 25, 2021 7:18 pm
- Forum: SW General
- Topic: Offset Entities and Parallel relation
- Replies: 6
- Views: 522
Re: Offset Entities and Parallel relation
You did not add any dimension between the edge and the line.
- Wed Aug 25, 2021 5:21 pm
- Forum: SW General
- Topic: Offset Entities and Parallel relation
- Replies: 6
- Views: 522
Re: Offset Entities and Parallel relation
There is no difference because you have only shown one thing. We cannot find the difference between one thing and no thing.
Parallel relation works just fine if you do everything else correctly.
Parallel relation works just fine if you do everything else correctly.
- Wed Aug 25, 2021 1:16 pm
- Forum: How To Questions
- Topic: Purchased and Machined part in BOM
- Replies: 10
- Views: 874