Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    Thanks Agridion, I'll send an email today! Shawn Oelschlager Production Control Ass't Transco Products Inc. http://www.transcoproducts.com SolidWorks Office Premium 2006 - SP4.1 Pentium 4 (2.8 GHz) - 2GB RAM
  2. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    engAlright, I've seen the API call to determine the "Fixed Face" of a part, but I'm not sure how to use it. There's some argument that I need to pass to it or something, but I'm not sure what. The SW API Help doesn't show much, but here's what I have so far... Sub main() Dim swApp...
  3. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    CorBlimeyLimey, Sorry about that, I did miss your point. That's a very good question. Like I said, I'm helping a co-worker (who happens to be out of the office today) so I'll have to ask him when he returns. I'm not sure if we'll have that situation, but I think we determine "Face Up" by the...
  4. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    I guess it would be the Bend-line notes. When a Flat Pattern view is selected and you right-click on the drawing component and select "Properties", I select "Display sheet metal bend notes", and the Up or Down side is displayed along with the angle of the bend lines. You can manually click the...
  5. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    I'm not sure, I'm asking this question for a co-worker. I believe he wants them to all be face-up. Shawn Oelschlager Production Control Ass't Transco Products Inc. http://www.transcoproducts.com SolidWorks Office Premium 2006 - SP4.1 Pentium 4 (2.8 GHz) - 2GB RAM
  6. shawn76o

    Sheet Metal - API for Flat Pattern View in Drawing

    I'm looking for an API function that can look at the Bend Line notes on a sheet metal part in a drawing. If the part is Face-Down, the macro will flip the part to Face-Up. This would work in the same way as when you click "Flip View" in the Flat Pattern Options while in a Drawing View of a...
  7. shawn76o

    Bug in Solidworks API for Custom Properties?

    handleman, I have to apologize because this seems to be another case of my "jumping to conclusions". I'm not sure what happened, but this was a problem I was having on Saturday and when I tried again today, I too was unable to duplicate the issue. It seems to be working fine now, so I guess...
  8. shawn76o

    searching for a configuration specific custom properties in SolidWorks

    Joseph, You can use a macro to list the custom properties for a configuration. File custom information is stored in the document file. It can be: General to the file, in which case there is a single value whatever the model's configuration - or - Configuration-specific, in which case a...
  9. shawn76o

    Bug in Solidworks API for Custom Properties?

    I seem to have found a Solidworks API oddity or bug... When I use the following code (below) to add a custom property Name "Volume" with a Value of "SW-Mass@P-24-3-6.SLDPRT", it almost works as expected. The value is added correctly, exactly as it should be. However, when I check the results...
  10. shawn76o

    SW API - Another way to load the CustomPropertyManager object?

    Ahh, OK! That makes sense now. Thanks for clearing that up, handleman! [thumbsup2] Shawn Oelschlager Production Control Ass't Transco Products Inc. http://www.transcoproducts.com SolidWorks Office Premium 2006 - SP4.1 Pentium 4 (2.8 GHz) - 2GB RAM
  11. shawn76o

    SW API - Another way to load the CustomPropertyManager object?

    Hi all, Bear with me here, I'm trying to learn how to use the SldWorks.CustomPropertyManager object, but the examples I've see in SW API help require the user to select a "weldment feature", and the API code uses a "SldWorks.SelectionMgr" object to set the "SldWorks.Feature" object, which...
  12. shawn76o

    Available Text Expressions in FileSummaryInfo

    Stef, No problem, I know well enough these things can be confusing, [3eyes] but even when we get side-tracked, we can learn new things. In this case, I learned about the difference between "Equations" and "Linked Dimensions" in Solidworks - so I thank you for that! Handleman, Once again you...
  13. shawn76o

    Available Text Expressions in FileSummaryInfo

    Just to make sure we're on the same page here... I understand the "equations" to be the expressions in the FileSummaryInfo window (aka Custom Properties) e.g., ""SW-Volume@PSC-18.SLDPRT"" is a text expression that is evaluated as something like "3.63". It IS linked somehow, to what I'm not...
  14. shawn76o

    Available Text Expressions in FileSummaryInfo

    Another note... When I do this: Debug.Print " Status = " & swEqnMgr.Status after setting the SldWorks.EquationMgr object - I get the value "-1" which, according to SW API Help, is the "Index of the equation" and will return "-1" if there was an error. Still not sure why I'm getting an error.
  15. shawn76o

    Available Text Expressions in FileSummaryInfo

    Thanks Stef! That looks like what I need. However, I'm having some difficulty getting some results. Can you take a look at my code and tell me if I'm doing something wrong. I'm not getting any errors, but the line where I call ExCount = swEqnMgr.GetCount I get "0" every time, as if there are...
  16. shawn76o

    Available Text Expressions in FileSummaryInfo

    When adding Custom Properties for components I've noticed that, depending on the part, certain "Text Expressions" are available for one part and unavailable for others. For example, I'm told by our engineers that the Text Expression for a "Thickness" property is only available for a sheet metal...
  17. shawn76o

    Error 91 while traversing assembly - Object Not Set

    Thanks handleman! That's exactly what I did - and it fixed the problem nicely! Also, because it takes a minute on larger assemblies, I took it a step further and added a message to tell the user what is happening. Public swApp As SldWorks.SldWorks...
  18. shawn76o

    Error 91 while traversing assembly - Object Not Set

    OK, I figured out what was happening, and that leads me to another question. The GetModelDoc() method was returning Null (Nothing) because the component was set to "Lightweight". I found this documented in Solidworks API Help. However, I still need the macro to check the custom properties of...
  19. shawn76o

    Error 91 while traversing assembly - Object Not Set

    I noticed that the problem occurs because for some reason, the swChildComp2.GetModelDoc() is returning "Nothing", although swChildComp2.Name is returning part # "P-2-3-35-A1-3/94103A-6" I don't understand... why "Nothing" ???
  20. shawn76o

    Error 91 while traversing assembly - Object Not Set

    I seem to have a problem grasping the concept of VB objects and their requirements for use. I'm trying to traverse an assembly to check the custom properties of every component for certain values. The problem first occurs when I get to the 2nd level of the assembly, and I call a subroutine that...
Back
Top