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. razzendahcuben

    Type mismatch when creating function (API)

    Found the problem. "app as Application.SldWorks" needs to be "app as SldWorks.SldWorks.", then the type mismatch error goes away. I'll correct the other error you pointed out as well. Thanks.
  2. razzendahcuben

    Type mismatch when creating function (API)

    Thanks for your input, guys. I tried both suggestions but same error still. I'll keep playing around with it...
  3. razzendahcuben

    Type mismatch when creating function (API)

    Thanks for the response. To answer your question: The first line of the function is the problem (Function IsPartOpen). Yes, there is a part open. The function tests whether a part is open.
  4. razzendahcuben

    Type mismatch when creating function (API)

    I am confused as to why I am getting a type mismatch here. Any insight would be greatly appreciated. ------- Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Sub main() Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc MsgBox IsPartOpen(swApp)...
  5. razzendahcuben

    Change unit

    You would need to change the units of the document, which would then change the custom property units. If the custom property type is Number then you are stuck with 6 decimal places. That is a known bug. If you use Text, however, then you can change the decimal places. To do all of this...
  6. razzendahcuben

    smart component help.

    Have you taken the Assembly Modeling class offered by your VAR? Smart components are covered. Otherwise Smart Components are covered in the Tutorials. Go to Help-->Tutorials, and then look under All SoidWorks Tutorials (Set 2). What you have described doesn't sound complicated at all so I'm sure...
  7. razzendahcuben

    API - cycling through drawing sheets and changing name

    The problem ending up being that given the above macro, multiple sheets with the same name would have existed. I changed it to first change all of the sheet names to something odd and then go back through make them Sheet1, Sheet2, ... etc
  8. razzendahcuben

    API - cycling through drawing sheets and changing name

    By the way, the Rebuild line wasn't really necessary, I was just throwing it to see if it would help and it didn't.
  9. razzendahcuben

    API - cycling through drawing sheets and changing name

    I am at a loss to explain why the following does not work. GetCurrentSheet is not getting the sheet even though that sheet is active. Any ideas? Thanks for your help. Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swDraw As SldWorks.DrawingDoc Dim swSheet As SldWorks.Sheet...
  10. razzendahcuben

    Lock Dimension Position on Drawings in SW2010 SP3.0

    I have run into this before; in my research I could not find a way to accomplish this. Maybe someone else has a trick or roundabout way but unfortunately there is nothing as simple as an anchor button the dimension property manager.
  11. razzendahcuben

    Marking selected objects (API)

    Actually, if you don't mind I have a followup question: what is the purpose of the CreateSelectData method and the ISelectData interface? I see it used in conjunction with marking a lot but looking over the examples I can't tell why it's used exactly. Thanks.
  12. razzendahcuben

    Marking selected objects (API)

    That explains the difficulty. Thanks.
  13. razzendahcuben

    Marking selected objects (API)

    Here is what I'd like to do: run through every face in the visible bodies. If a face is blue (B = 1) then mark it. Once all faces have been traversed, select all marked faces. Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swPart As SldWorks.PartDoc Dim swBody As Variant...
  14. razzendahcuben

    Why aren't these mate references recognized in the assy?

    Hi, The mate references in "screw.sldprt" are set up in a fairly sensible fashion, and yet when I drag them onto a hole in the assembly they are not recognized. Sometimes I can switch the order and get the face to recognize a coincident mate, but I'm trying to get the "drop in hole" mate icon...
  15. razzendahcuben

    Reference dimension in design table

    Indeed, I didn't list all of the steps. After saving out the design table, delete the design table and re-insert it, this time from the file previously saved. Select the link to file checkbox. Also the design table is inserted as a new object from file the Link checkbox must be checked.
  16. razzendahcuben

    Reference dimension in design table

    Thanks, though that is precisely the problem---you can't add reference dimensions by dbl clicking on them. I just found that if you create the reference dimension before you create the design table then upon automatically creating the design table you will be given the option to add the...
  17. razzendahcuben

    Reference dimension in design table

    Is there no way to get a reference dimension in a design table? Basically I have want to include the dimension of a flat plattern in my design table, save out this design table, and then insert it into my drawing as a linked object. That way when my model changes the flat pattern length changes...
  18. razzendahcuben

    PDMW error

    Can you look up S-019103 in the customer portal? It deals with this directly. Otherwise your VAR could access this SR no doubt.
  19. razzendahcuben

    Solidworks Freezes when I click "File"

    Does it freeze permanently and then crash or does it just freeze for a few seconds? This was a problem in an earlier service pack on some systems; have you upgraded to the latest SP? You might also try resetting your registry. Go to Start-->Run, type regedit. Located...
Back
Top