Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: oorah
  • Order by date
  1. oorah

    TreeView in Macro

    Here's some code I used to delete some custom properties with. It has a procedure for displaying a file tree window that I used in an Excel macro. This one recurses subdirectories, you have to comment out four lines near the bottom if you wish to perform your functions on files found ONLY in the...
  2. oorah

    API for SW-Mass@etc...

    MacPT, I used the code from netshop21 and it works fine. Your Excel macro sounds interesting though... You are not inserting a Design Table, correct? Do you have a spreadsheet I can look at?
  3. oorah

    API for SW-Mass@etc...

    Thanks TheTick. I figured that out shortly after sending my last reply. Your code will give me a starting point and I'll play around with it tomorrow. If I can get it to work, it will add a custom property called &quot;Weight&quot;, text type, with a value showing &quot;SW-Mass@<FileName>&quot;.
  4. oorah

    API for SW-Mass@etc...

    Now I get a &quot;Sub or function not defined&quot; for &quot;TargetConfigNames&quot; in the following line of code: TargetConfig = CStr(TargetConfigNames(cboTgtCfgs.ListIndex))
  5. oorah

    API for SW-Mass@etc...

    Thanks for the quick response, and this code appears to be exactly what I'm looking for. However, I'm getting a compile error; &quot;User-defined type not defined&quot; on line &quot;Dim PropList() As swPropParams&quot;
  6. oorah

    API for SW-Mass@etc...

    Does someone have the code to add a custom property, such as weight, and link it to the mass value in mass properties? I have code to &quot;GetMassProperties()&quot; and display the mass value in a window or report, but I don't want to add a property and just paste the value. I would like to...
  7. oorah

    Directional Lighting Problem

    I'm having trouble setting the ambient color code for Directional2 in a macro. The color code I want is 12615808 (Red 128, Grn 128, Blu 192). The macro that folows works but does not change the Directional2 ambient color. Any help? Code: 'Clr-DyeBlack.swb - 08/13/03 by [Me] ' 'Changes the part...
  8. oorah

    Delete a Design Table from a Macro

    Yes, I have a part file open and visible. The macro will work if I first select the DT by clicking on it once with the mouse, otherwise it just runs without deleting the DT or returns the error that LoveAeris mentioned. I'm hoping to find the code that will do the same thing as clicking on the...
  9. oorah

    Delete a Design Table from a Macro

    TheTick, Thanks for the fast response. The code still doesn't select the DT though, so the macro just runs through and ends without deleting the DT. - Oorah
  10. oorah

    Delete a Design Table from a Macro

    Hello, How do I delete a Design Table from a part file within a macro? The recored code for this is listed below. This code will not work unless the DT is actually selected before running the macro. The boolean status line doesn't really select the DT. The real question then is &quot;How do I...

Part and Inventory Search