Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by Hacaro

  1. Hacaro

    Ram and 64 Bit Workstations

    Hi there, I hestitated for a long time before switching to x64. I'm still using SW2005, so there is no 64bit version available, but using sp4 and up you can run it on x64. I have 'only' 4 Gb of Ram, but in x64 SW can use ALL of it! So the main advantage is a better memory management of...
  2. Hacaro

    Unsuppress ALL parts

    I have a workstation with SW2005 with strange behaviours. I recently installed SW2005 SP0.0 and upgraded to SP5.0. Since then the user complains of SW sometimes unsuppressing ALL parts in all assemblies and in all subassemblies of his work. I have never seen this behaviour and I can't explain...
  3. Hacaro

    Sheet API

    Hi there, I'm trying to edit a note on the CURRENT drawing sheet using VB. When I record a macro it looks something like: ... Model.SelectByID("DetailItem56@Sheet Format1", "NOTE", ...) ... This is the selection of the note. Now I see that if I edit the note on sheet 3 the...
  4. Hacaro

    Drawing sheet name

    Thanks a lot, That seems like a good solution. Not as easy and straigthforward as I hoped, but workable. Best regards, Maarten Dros
  5. Hacaro

    Drawing sheet name

    Hello, Does anyone know if it's possible to change the default naming SW uses for drawing sheets? (Sheet1, Sheet 2,..) Most of the time I have about 15 sheets in a drawing and I name them 1, 2, ... by hand. I was just wondering if it's possible to make Solidworks use this naming rule...
  6. Hacaro

    Get part name using VBA

    You seem to know all the answers to my questions! Thanks a lot, TheTick. I'll give it a try.
  7. Hacaro

    Get part name using VBA

    I'm trying to insert a custom property that contains the weight of a part using a vba macro. In order to do this I need the partname to insert "weight@partname.sldprt" in the property field of that property. I can do this using GETPATHNAME and then filtering out the partname using the...
  8. Hacaro

    Change part colour using SW API

    Yep, this is the way to go! It works fine. Just took me a while to figure out how to pass the "safearray". This is the way to do it: 1) define a variant and an array of doubles 2) assign the desired values to each member of the array 3) variant = array 4) pass the variant between...
  9. Hacaro

    Change part colour using SW API

    Great! PartDoc::MaterialProperty I'll try it immediately. Thanks a lot.
  10. Hacaro

    Change part colour using SW API

    I am trying to change the colour of a part document using VB. Is it necessary to select every single face and set the desired colour or is it possible to change the colour of the part in one simple operation? I think it is possible since it's posible in SW (select the first feature in the tree...

Part and Inventory Search