Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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 ArtemTat

  1. ArtemTat

    getting the part name by clicking on drawing view

    Sorry to hear that. Do you have any specific errors or it just does nothing? Can you record a short video of how you use the macro? Do you have a text file with properties and the properties do exist in the model? ctrl+q is a shortcut for a force rebuild so it is better to use some other...
  2. ArtemTat

    Save Drawing as PDF Macro and rev update

    Is this revision come from custom property? It is possible to develop what you are looking for but this needs to be developed as an integrated add-in which listens for property change events and exports the PDF if revision is changed. If you are developer I can give you some hints of API...
  3. ArtemTat

    getting the part name by clicking on drawing view

    Hi, Try this macro: #CODE|Component information Quick Hint Tool Thanks, Artem
  4. ArtemTat

    Clear recent documents

    You can remove the recent documents from the registry. Go to HKEY_USERS\S-1-5-21-XXXX\Software\SolidWorks\Solidworks 2016\Recent File List Where S-1-5-21-XXXX is your User's Security Identifier (SID). I would suggest to just do a search over the registry for Recent File List. Once found...
  5. ArtemTat

    Scripting in SolidWorks

    Hi, Yes, this is possible with SolidWorks API (assuming that centroid == center of mass). Take a look at the following methods: http://help.solidworks.com/2015/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.imassproperty~centerofmass.html...
  6. ArtemTat

    Open "Part in Position" using API

    I think you cannot preset the orientation because IModelView only available for visible documents. But you can freeze the view so user won't see the view change (take a look at ModelView::EnableGraphicsUpdate).
  7. ArtemTat

    Open "Part in Position" using API

    WM_COMMAND is a message which is sent with the parameter 52056, WM_COMMAND = 273. If you convert 0111 from HEX to Decimal you will get 273
  8. ArtemTat

    Open "Part in Position" using API

    No, this was handled using Win32 Windows APIs (Global Hooks). I just found which message was sent and which parameters.
  9. ArtemTat

    Open "Part in Position" using API

    I have update the original example to link to the snippet which shows how to do this using the transforms (scroll down to the bottom to see the link).
  10. ArtemTat

    Open "Part in Position" using API

    No, I'm afraid the API is missing. One alternative way to do this is to get the transformation of the component (IComponent2::Transform2) and current view transformation (IModelView::Transform) and compose new transform to apply to the opened part's view.
  11. ArtemTat

    Macro to make parts from a generic design table

    Hi, You need to parse the excel (either using the Excel APIs or preferably via the ODBC/OLED source for the performance reasons). Then you can use this method to apply parameters: Configuration::SetParameters. Thanks, Artem
  12. ArtemTat

    Open "Part in Position" using API

    Hi, You can try this example: https://cloud.centralinnovation.com.au/sharpcode/index?article=Open-Part-In-Position Thanks, Atrem
  13. ArtemTat

    [API] SelectByID2 trouble

    Hi, Try to avoid using SelectByID2 for selection unless the permanent name is used. Please note that the sketch elements such as sketch segments or sketch points have temporary names. So 'Point1' is assigned dynamically and can change later. Furthermore SelectByID2 is a view specific method for...
  14. ArtemTat

    SW Addin : Sketch Census

    Just in case that you are not the same person who posted this question on SW API Forum. Please refer: https://forum.solidworks.com/message/333186#333186 Regards, Artem Taturevych Application Engineer at Intercad http://intercad.com.au/ Tel: +61 2 9454 4444
  15. ArtemTat

    Two part properties in one BOM cell

    Excuse me, just realized that you are asking for different thing Regards, Artem Taturevych Application Engineer at Intercad http://intercad.com.au/ Tel: +61 2 9454 4444

Part and Inventory Search