Search found 605 matches

by JSculley
Tue Jun 25, 2024 8:41 am
Forum: How To Questions
Topic: add weld prep to angle cut pipe
Replies: 3
Views: 193

Re: add weld prep to angle cut pipe

There is a simple way with surfaces that only requires a single sketch. Start with this: image.png I'll show one side, but the process is the same for both sides. 1. Create a sketch on the end face and offset the ID edge equasl to your land length (2mm): image.png 2. Use the sketch to create a split...
by JSculley
Tue Jun 18, 2024 7:56 am
Forum: How To Questions
Topic: Change mouse pointer with VBA
Replies: 4
Views: 401

Re: Change mouse pointer with VBA

Thanks @JSculley , was thinking about that, but not sure how to implement it. Normally you would know the total number of actions/events and then show the percentage completed on the status bar. In this case, I want to delete all instances of a file outside the PDM on a network drive and replace it...
by JSculley
Fri Jun 14, 2024 9:42 am
Forum: API
Topic: recording errors in API generated Parts
Replies: 3
Views: 201

Re: recording errors in API generated Parts

See Feature::GetErrorCode2 in the API help.
by JSculley
Tue Jun 11, 2024 11:04 am
Forum: How To Questions
Topic: Workflow for importing thread methodology
Replies: 6
Views: 425

Re: Workflow for importing thread methodology

Most people do not model standard threads. They are resource intensive and cosmetic threads are sufficient for most purposes. Having said that, if you wish to continue doing so, you can create a library feature.
by JSculley
Wed Jun 05, 2024 3:57 pm
Forum: How To Questions
Topic: How to accept failed feature; setting?
Replies: 21
Views: 685

Re: How to accept failed feature; setting?

This was timely (and unintentional.) I created this sketch (with an unintended self-intersection), attempted an extrude cut and got this error: image.png No problem, I thought. I can just select a region. image.png image.png So I'm back to cancelling the operation, fixing the sketch and trying agai...
by JSculley
Wed Jun 05, 2024 3:15 pm
Forum: Macro Library
Topic: Help needed on 3D sketch macro
Replies: 4
Views: 391

Re: Help needed on 3D sketch macro

See the Remarks section of this page in the API Help.
by JSculley
Wed Jun 05, 2024 7:56 am
Forum: SW General
Topic: Carryover of saved custom views
Replies: 14
Views: 768

Re: Carryover of saved custom views

I see, thank you. My knowledge level just tapped out with those words so I consulted with Gemini. This looks like something I could manage to really screw up. Chimpanzee with a loaded weapon syndrome LOL. Just out of morbid curiosity, can you provide a bit more detail of how you went about getting ...
by JSculley
Tue Jun 04, 2024 7:28 pm
Forum: How To Questions
Topic: How to accept failed feature; setting?
Replies: 21
Views: 685

Re: How to accept failed feature; setting?

We avoid using regions. Testing that we have done indicate they lead to more changes in geometry IDs when editing the profiles. Absolutely. This is just a means to allow you to create the feature that will fail otherwise while you go and fix the problem. I made extensive use of regions on one model...
by JSculley
Tue Jun 04, 2024 4:23 pm
Forum: How To Questions
Topic: How to accept failed feature; setting?
Replies: 21
Views: 685

Re: How to accept failed feature; setting?

Frederick_Law wrote: Tue Jun 04, 2024 4:12 pmZTG
Again, you can simply select one or more regions (they can even have ZTG)and carry on:
image.png
I would never do it, but if the goal is to preserve a couple of property manager values while you go fix something else, it works.
by JSculley
Tue Jun 04, 2024 3:14 pm
Forum: How To Questions
Topic: How to accept failed feature; setting?
Replies: 21
Views: 685

Re: How to accept failed feature; setting?

SPerman wrote: Tue Jun 04, 2024 1:06 pm Here's one example:

image.png
You can just click the 'Selected Contours' box and choose one or more closed contours and continue on your way. I'm not sure how you would end up with that error in a new feature though.
by JSculley
Tue Jun 04, 2024 12:57 pm
Forum: How To Questions
Topic: How to accept failed feature; setting?
Replies: 21
Views: 685

Re: How to accept failed feature; setting?

Sometimes it is as simple as missing something in the sketch for an extrude. It would be preferred if you could create the (failed) extrude feature and then go back and fix the sketch. I can't think of a way that a new extrude would fail based on the content of the sketch. You can extrude a single ...
by JSculley
Tue Jun 04, 2024 12:15 pm
Forum: SW General
Topic: Carryover of saved custom views
Replies: 14
Views: 768

Re: Carryover of saved custom views

CarrieIves wrote: Tue Jun 04, 2024 11:10 am @JSculley - Thanks for sharing that it was a registry setting. I have noticed that sometimes those views are there and was wondering how they appeared. It must be a newer thing. I don't think I noticed it until we were using SW2023.
I'm using SW2017, so it's been there since at least then.
by JSculley
Tue Jun 04, 2024 7:22 am
Forum: SW General
Topic: Carryover of saved custom views
Replies: 14
Views: 768

Re: Carryover of saved custom views

It's not a folder on your hard drive. It is an entry in the Windows Registry.
image.png
by JSculley
Mon Jun 03, 2024 12:58 pm
Forum: SW General
Topic: Carryover of saved custom views
Replies: 14
Views: 768

Re: Carryover of saved custom views

I believe you are talking about the saved views here: image.png These saved views aren't saved in the templates. You will see the same list of saved views in parts and assemblies. They are stored in the registry: Computer\HKEY_CURRENT_USER\Software\SolidWorks\SOLIDWORKS 20xx\User Interface\Saved Views
by JSculley
Tue May 28, 2024 9:21 am
Forum: SolidWorks PDM
Topic: Template for PDM Addin
Replies: 1
Views: 710

Re: Template for PDM Addin

PDM add-ins are much simpler to create than SOLIDWORKS add-ins. You don't really need a template. The API docs have a reasonable starting point here
by JSculley
Fri May 24, 2024 7:25 am
Forum: SW General
Topic: Direct connection CutList Property to the Custom Property
Replies: 9
Views: 1237

Re: Direct connection CutList Property to the Custom Property

If only I could do it. Then for parts with one sheet body, or with one construct body, I would do: I made a direct link between the auto-updating sheet metal thickness property from the body and the Special Configuration Properties (yes, there is a Thickness global variable, but there are construct...
by JSculley
Thu May 23, 2024 9:15 am
Forum: SolidWorks PDM
Topic: How to consolidate qty of different config's of a part in PDM BOM view?
Replies: 4
Views: 833

Re: How to consolidate different config's of a part in PDM BOM view?

To my knowledge, this can't be done with a PDM computed BOM. If you add a column for the file name in your BOM, when you export it to excel you can use the Consolidate function in Excel to quickly combine the rows that have the same file name and total up the quantities. A PDM add-in could also hand...
by JSculley
Thu May 23, 2024 8:09 am
Forum: SW General
Topic: Direct connection CutList Property to the Custom Property
Replies: 9
Views: 1237

Re: Direct connection CutList Property to the Custom Property

We are talking around each other. Let's look at it a different way. If you could do what you are asking, how would you use it? In other words, why do you want to be able to do this?
by JSculley
Wed May 22, 2024 6:56 am
Forum: SW General
Topic: Direct connection CutList Property to the Custom Property
Replies: 9
Views: 1237

Re: Direct connection CutList Property to the Custom Property

Apparently I don't understand something. Because it makes sense to me. In Solidworks there cannot be two bodies with the same names in a part. If we create a sheet part with several sheet bodies, then they will have Sheet<1> Sheet<2> or whatever you want. Even if in a part with Structure bodies you...
by JSculley
Tue May 21, 2024 2:32 pm
Forum: SW General
Topic: Direct connection CutList Property to the Custom Property
Replies: 9
Views: 1237

Re: Direct connection CutList Property to the Custom Property

What should SOLIDWORKS do when two cutlist items have the same user defined property? Which one gets to populate the file property? What you are asking for doesn't make sense.
by JSculley
Fri May 17, 2024 3:09 pm
Forum: SolidWorks PDM
Topic: PDM 2024 SP2
Replies: 5
Views: 964

Re: PDM 2024 SP2

They aren't visible at all. Same folder to copy tree into. Refresh the explorer. Lather, rinse, repeat, crash out...... Just another fun day ending in 'y'. I'm trying out some other theories in doing the copy tree. I'll post again if I find out anything through my trial runs. Have a good weekend. B...
by JSculley
Fri May 17, 2024 12:30 pm
Forum: SolidWorks PDM
Topic: PDM 2024 SP2
Replies: 5
Views: 964

Re: PDM 2024 SP2

But if you try to save as that PN, it says it already exists and you can overwrite it. It sounds like the files have been created but not added to the vault. They won't show up in a search, but you should be able to browse to the folder and see them there. The icon will be slightly transparent and ...
by JSculley
Fri May 17, 2024 12:01 pm
Forum: SolidWorks PDM
Topic: Start web application with button.
Replies: 7
Views: 1091

Re: Start web application with button.

I've never figured out what the last %% option does. It's not documented. Anyone figure it out? I believe it adds an actual % character. Since '%' is used to identity the dynamic triggers (%!1 %2, etc), you need to 'escape' the % with another % if you want the % character in the actual command stri...
by JSculley
Thu May 16, 2024 2:08 pm
Forum: SolidWorks PDM
Topic: Start web application with button.
Replies: 7
Views: 1091

Re: Start web application with button.

If the built-in values available when connecting the button to a command string aren't what you need, you need to create a custom add-in and have the button run the add-in. Launching a browser with whatever URL info you want is trivial from within an add-in.
by JSculley
Thu May 16, 2024 1:01 pm
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 2498

Re: Tab-To-(only temporarily)-Hide

-I don't want to have to remember which or how many or where things were hidden. I just want to instantly revert to the display before I started hiding things. But what is the definition of 'before I started'? Since it isn't a group operation, SW has no idea that two hide operations are related. Th...
by JSculley
Wed May 15, 2024 2:25 pm
Forum: SW General
Topic: Programming in SolidWorks, how important is it?
Replies: 18
Views: 1945

Re: Programming in SolidWorks, how important is it?

Any specific reason you're calling VBA a "dead end"? It's easier to learn, easier to understand, easier to debug, has more tutorial/sample code available, more concise, easier to share, easier to deploy..... Easier to learn? Not really. Especially in a macro context where the underlying p...
by JSculley
Tue May 14, 2024 11:25 am
Forum: SW General
Topic: Programming in SolidWorks, how important is it?
Replies: 18
Views: 1945

Re: Programming in SolidWorks, how important is it?

Using the API is more of a 'want' than a 'need'. Open source software guru Eric Raymond once said this: "Every good work of software starts by scratching a developer's personal itch." If you want to be a programmer, you have to have a problem (itch) that you want to solve (scratch). For me...
by JSculley
Mon May 13, 2024 3:19 pm
Forum: How To Questions
Topic: Close document without unloading it from memory?
Replies: 4
Views: 722

Re: Close document without unloading it from memory?

That is what I do right now (or just close and reopen the document, which is the same), but for example if my active document is a large assembly containing part C, then it can take a very long time to reload everything, rather than just load back into memory these few documents that were closed. B...
by JSculley
Mon May 13, 2024 11:05 am
Forum: How To Questions
Topic: Close document without unloading it from memory?
Replies: 4
Views: 722

Re: Close document without unloading it from memory?

After modifying part A and returning to part C, File....Reload will update C with the changes in A. Before using reload though, make sure you save C so that any changes made in C aren't lost.
by JSculley
Wed May 08, 2024 7:22 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM, tool to copy the archives of a file and its reference tree
Replies: 5
Views: 1213

Re: PDM, tool to copy the archives of a file and its reference tree

From the Knowledge Base : =============================== For older versions, or if you need to collect archives for referenced files as well , you can use the attached tool to copy individual file vault archives for selected files in a vault. With a copy of the vault database and the copied archive...
by JSculley
Thu May 02, 2024 5:23 pm
Forum: SolidWorks PDM
Topic: Document Expiration Date - Is it possible?
Replies: 10
Views: 1438

Re: Document Expiration Date - Is it possible?

One of the needs we have identified is to have a controlled expiration of a document. For instance, we obtain a file from a vendor, but we are required to destroy all copies of it after 30 days or on a specific date. Is there a way to do this with SWX PDM Pro or even to notify someone that has chec...
by JSculley
Wed Apr 24, 2024 2:47 pm
Forum: How To Questions
Topic: Can I get rid of all Scenes?
Replies: 5
Views: 812

Re: Can I get rid of all Scenes?

There's a System setting:
image.png
by JSculley
Fri Apr 19, 2024 10:16 am
Forum: 2D Drawings
Topic: Text justification
Replies: 10
Views: 1066

Re: Text justification

Bryan O wrote: Thu Apr 18, 2024 3:46 pm I'm playing with my title block layouts and I cant figure out how to Center/Center justify the text in a given space.
image.png
image.png

Any tips
Can you upload your template?
by JSculley
Wed Apr 17, 2024 3:39 pm
Forum: SW General
Topic: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger
Replies: 12
Views: 1705

Re: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger

Nice work. The appearance is surprisingly less painful. I second the post timestamp instead of how long ago request. Also, can you just get rid of the "Answered" label? The number of replies is shown and most humans can do the if(numReplies > 0) logic pretty quickly. It doesn't always say...
by JSculley
Wed Apr 17, 2024 3:32 pm
Forum: SW General
Topic: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger
Replies: 12
Views: 1705

Re: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger

Very nice! Do you think it would be possible to extract the actual date/time for the post and display that rather than the "1 hour ago" nonsense they persist with? The data seems to be available when you hover over their vaguestamp. image.png At first glance, it's not straightforward. The...
by JSculley
Wed Apr 17, 2024 3:23 pm
Forum: API
Topic: Find touching face in a multi-body part
Replies: 9
Views: 1227

Re: Find touching face in a multi-body part

Thank you, that's a good suggestion. I will try to implement that RayIntersections. True, selecting both faces would make it easier, but it's very awkward to do, since none of them are visible, and you have to do Select Other twice. It is much easier to simply hide one body to reveal one of the tou...
by JSculley
Mon Apr 15, 2024 3:55 pm
Forum: API
Topic: Find touching face in a multi-body part
Replies: 9
Views: 1227

Re: Find touching face in a multi-body part

laukejas wrote: Sat Apr 13, 2024 7:10 am Since there might be many bodies in the model, I think the best way to find the other body is to find the touching face, which should be identical to the one user selected.
Is there a guarantee the faces are 'identical'? What about a part like this:
image.png
by JSculley
Thu Apr 11, 2024 12:48 pm
Forum: SW General
Topic: Knitting surfaces or turning into solid changes face quality
Replies: 31
Views: 3150

Re: Knitting surfaces or turning into solid changes face quality

You have right. ST8 There is no tangent condition at the keel! Also, I don't understand why this sketch isn't parallel to the others. This can cause contact errors on the small lower surface of the bow Also, I believe ST1 has an incorrect pierce point. It is piercing the control point polyline and ...
by JSculley
Thu Apr 11, 2024 12:23 pm
Forum: SW General
Topic: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger
Replies: 12
Views: 1705

Re: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger

josh wrote: Thu Apr 11, 2024 12:12 pm Did you forget to attach the script? :-D
It's not quite ready.
by JSculley
Thu Apr 11, 2024 11:51 am
Forum: SW General
Topic: Improving the look/usability of the SWYMP Without Dassault Lifting a Finger
Replies: 12
Views: 1705

Improving the look/usability of the SWYMP Without Dassault Lifting a Finger

A little something I've been working on. My current view on CADForum.net: image.png Default view of the SWYMp (with 'compact' view enabled): image.png My current view of the SWYMp: image.png Nearly twice as many posts on screen. A lot of clutter removed: Useless compass Facebook-style 'likes' Dassau...
by JSculley
Wed Apr 10, 2024 1:31 pm
Forum: SW General
Topic: Pipe Wye Branch(Bifurcation)
Replies: 6
Views: 1353

Re: Pipe Wye Branch(Bifurcation)

Surfaces are an efficient way to do this. The main issue is that when you slice a cone at an angle, you get an ellipse. So, your branches have to transition from a circle to an ellipse. The attached model uses surface lofts to create the ID and the OD and the ends are then capped so that it can all ...
by JSculley
Mon Apr 08, 2024 8:50 am
Forum: SW General
Topic: Pipe Wye Branch(Bifurcation)
Replies: 6
Views: 1353

Re: Pipe Wye Branch(Bifurcation)

Can you post a closeup of the image on the left? I can't make out the dimensional information.
by JSculley
Fri Mar 29, 2024 11:32 am
Forum: How To Questions
Topic: Recommendations on how to model this part
Replies: 17
Views: 2022

Re: Recommendations on how to model this part

Once I wrapped my head around the proper geometry it is rather simple. I was trying to force helix of 2 different pitches and angle of rotations to accomplish the geometry I thought I needed. It kind of worked, but was the wrong approach either way. I need to do research into equation driven curves...
by JSculley
Fri Mar 29, 2024 7:13 am
Forum: How To Questions
Topic: Recommendations on how to model this part
Replies: 17
Views: 2022

Re: Recommendations on how to model this part

The only place you can "transition" from a helix to a flat is directly along a radial line. Any line that is not exactly a radial line cannot have a transition from a true helix to a true flat without a step. Anything you bodge together with surfaces may sorta look like a helix, but it wo...
by JSculley
Thu Mar 28, 2024 11:47 am
Forum: How To Questions
Topic: Recommendations on how to model this part
Replies: 17
Views: 2022

Re: Recommendations on how to model this part

What are the required helix parameters? The numbers in your model seem manually tweaked as you said.
by JSculley
Tue Mar 26, 2024 11:00 am
Forum: How To Questions
Topic: How to Run Macros While Closing the Solidworks)
Replies: 5
Views: 831

Re: How to Run Macros While Closing the Solidworks)

Hello everyone, Sometimes when designing, I forget to run my important macros. Therefore, I came up with an idea and started researching: when finishing a drawing, I want a macro named Last.swp to run automatically when closing the part file. Can I do this, and do you have an example? oa I found th...
by JSculley
Fri Mar 22, 2024 12:24 pm
Forum: SW General
Topic: Help with guide curves
Replies: 15
Views: 1582

Re: Help with guide curves

The issue with this part is that SW doesn't like something about the relations in your profile sketch. If you delete them, the sweep with guide curves completes without errors. The trick will be to determine which relation(s) it doesn't like. Update: After some further tests I see what's happening. ...
by JSculley
Fri Mar 22, 2024 12:18 pm
Forum: SW General
Topic: Help with guide curves
Replies: 15
Views: 1582

Re: Help with guide curves

The shape can not change on a sweep, it can rotate around the center and/or contort when using "keep normal constant" setting, but the shape never changes. To get it to jut out on the left side like your skecth shows you would most likely have to do a loft or a series of extrudes/cuts. Th...
by JSculley
Thu Mar 21, 2024 4:09 pm
Forum: SW General
Topic: Standard Parts Library: Configurations or Individual Parts?
Replies: 34
Views: 3729

Re: Standard Parts Library: Configurations or Individual Parts?

Same think would go for if you have PDM, then you almost have to 1 part file for each or you will have issues. Our hardware models are configured (via design table) and we've been using PDM since 2010. No issues. The part number, description, etc... are configuration specific properties. I have one...