×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SW Limitations.
2

SW Limitations.

SW Limitations.

(OP)
Most of us know of the "300 mates" limitation for assemblies.  And we also know that our feature sketches shouldn't be too complicated.  

Does anyone know how many sketch segments qualify as being too many?  Also, is there a good way of finding the number of sketch segments in a sketch?

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

Quote:

Does anyone know how many sketch segments qualify as being too many?

The only way I can tell is when it gets slow - depending on complexity of the sketch. I know that's not a good answer, but that is the best way to tell. This will vary not only because of Complexity of the sketch but also hardware and other software running.

But hey I have been wrong before?

Quote:

Also, is there a good way of finding the number of sketch segments in a sketch?

No there are no application within SW to do this. I'm sure it wouldn't be that hard for SW to put this feature in, or maybe if you ask TheTick really nice he will make something for you?

Regards,

Scott Baugh, CSWP
http://www.3dvisiontech.com
http://www.scottjbaugh.com

FAQ731-376

RE: SW Limitations.

There are a number of "Get____count" methods in the sketch API.  Looks like one must tally up lines, arcs, etc. separately and then add tem up.

"An object at rest can not be stopped."
http://www.EsoxRepublic.com

RE: SW Limitations.

If you preselect them, you can use the (API) Selection Manager and get the number of selected items.

Ken

RE: SW Limitations.

Quote:

Most of us know of the "300 mates" limitation for assemblies.

For those of us that don't, could you please enlighten us?
Thanks,
Ken

RE: SW Limitations.

(OP)
This just means that your top-level mates should be no more than 300 mates.  More mates can introduce errors in your assemblies.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

I've never heard this before (with an actual number). So since it's pretty much 3 mates per component, then it's recommended that any assembly have a max. of 100 components?

Is this something you follow or something you found out from other sources? I doubt SolidWorks would ever issue a statement like this, but I am all for finding ways to increase large assembly stability.

Thanks for the info.,
Ken

RE: SW Limitations.

(OP)
I believe it was posted by an offical SW source, but have myself only heard it through word-of-mouth.

A way to get beyond the limitation is to use more sub-assemblies in your top-level models, along with configurations to supress unrelated parts and features.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

MadMango
What kind of errors can we expect in the assembly?

Regards

RE: SW Limitations.

(OP)
Mostly rebuild errors and over constrained errors, not to mention a hit on computer performance.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

(OP)
For those interested, here's a marco to count the number of sketch segments in an active feature sketch.

CODE

Option Explicit

Public Enum swSkSegments_e
    swSketchLINE = 0
    swSketchARC = 1
    swSketchELLIPSE = 2
    swSketchSPLINE = 3
    swSketchTEXT = 4
    swSketchPARABOLA = 5
End Enum

Dim Total As Integer



Sub main()
    Dim sSkSegmentsName(5)      As String
    
    Dim swApp                   As SldWorks.SldWorks
    Dim swModel                 As SldWorks.ModelDoc2
    Dim swSelMgr                As SldWorks.SelectionMgr
    Dim swFeat                  As SldWorks.feature
    Dim swSketch                As SldWorks.sketch
    Dim vSkSegArr               As Variant
    Dim vSkSeg                  As Variant
    Dim swSkSeg                 As SldWorks.SketchSegment
    Dim swSkLine                As SldWorks.SketchLine
    Dim swSkArc                 As SldWorks.SketchArc
    Dim swSkEllipse             As SldWorks.SketchEllipse
    Dim swSkSpline              As SldWorks.SketchSpline
    Dim swSkText                As SldWorks.SketchText
    Dim swSkParabola            As SldWorks.SketchParabola
    Dim vID                     As Variant
    Dim i                       As Long
    Dim bRet                    As Boolean
    Total = 0
  On Error GoTo huboalgo
    
    Set swApp = Application.SldWorks
    Set swModel = swApp.ActiveDoc
    Set swSelMgr = swModel.SelectionManager
    Set swFeat = swSelMgr.GetSelectedObject4(1)
    Set swSketch = swFeat.GetSpecificFeature
   
    
    vSkSegArr = swSketch.GetSketchSegments
    For Each vSkSeg In vSkSegArr
        Set swSkSeg = vSkSeg
        Total = Total + 1
    Next vSkSeg
    MsgBox "Total of segments: " & Total, vbInformation, "SEGMENTS COUNT"
    GoTo THEEND
huboalgo:
    MsgBox "Please select an sketch", vbCritical, "MACRO ERROR"
THEEND:
End Sub

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

(OP)
TheTick- "word".

An add-in might be nice, depending on how much usability everyone thinks this little utility has.  I'm happy with it as macro and could go either way, I won't look a gift horse in the mouth.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

Well, I've noticed some of my assemblies behave strangely (for example, as MadMango mentioned, overconstrained parts when it's obvious that there are mates missing to reach this state). Now I suspect the "300 mates" error.

Counting 300 mates it's not an appealing task. So this macro is most welcome. An add-in will be the cherry on top of the cake.

Thanks MadMango and TheTick.

Regards

RE: SW Limitations.

macPT ... To find the number of top level mates all you have to do is run the Assembly statistics under the Tools menu.
The above macro is for counting the number of sketch segments ... sort of a Sketch statistics feature.

RE: SW Limitations.

(OP)
Thanks for that reminder Scott, it's posted.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

RE: SW Limitations.

CBL
Damn! I should avoid late posts and sleep a bit more!

Regards

RE: SW Limitations.

Addin update:

I finished programming, compiling, testing, packaging.  All that's left is to update my website with a link to the new program.  This should happen by Friday morning.

"An object at rest can not be stopped."
http://www.EsoxRepublic.com

RE: SW Limitations.

About the 300 mates thing, if you break up your assembly into sub-assemblies, are the mates within the sub-assembly included in the total?

John Woodward

RE: SW Limitations.

No, only the ones that reference the top level planes or top level skeleton/layout sketches.

RE: SW Limitations.

(OP)
TheTick, I visited your site, but haven't downloaded anything yet (our IT disallows downloading anything).  You have a great sense of humor.  It's so hard to find good graphics of mangos.  Looking forward to seeing the icons you created.

"But what... is it good for?"
Engineer at the Advanced Computing Systems Division of IBM, 1968, commenting on the microchip.
Have you read FAQ731-376 to make the best use of Eng-Tips Forums?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources