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!

Search results for query: *

  • Users: ZsZs
  • Content: Threads
  • Order by date
  1. ZsZs

    How get the instance number of my component (in API) ?

    Hi! I attach a picture. I like selecting the component (with API) - signed with red circle. Before I use the ModelDocExtension::SelectByID2 method, I need to use the fully qualified name (otherwise not working this method). The API help wrote: "The ModelDoc2 object used to call this method...
  2. ZsZs

    Get all dimension parameter from assembly

    Hi! I have a big problem. I like get the all dimension parameter of my assembly. (API) I don't know the name of parameter, therefore I like get the all parameters, and I check the read-only flag of dimension (and set to false, if not...) I not found any method that read up the parameters of...
  3. ZsZs

    Who used the Component2::UpdateExternalFileReferences API function?

    I using C++ with COM, but I am happy with VB help too. The description of this function in the API-help are nothing. I how using it? (I'm computer programmer not a CAD architect...) Regards: ZsZs.
  4. ZsZs

    Get references from part file

    I must be to write Pack 'n Go with API. It is difficult problem (for me)... I get the references with the SldWorks::GetDocumentDependencies2() function. It is working... I get the all references from assembly... (sub-assembly and part, both ok...) I replace with the references the...
  5. ZsZs

    How can use the SW Document Manager in API?

    Hi! I like to use in Document Manager in VC++ 6.0 with API A example wrote this rows: CComPtr<ISwDMClassFactory> swClassFact; CComPtr<ISwDMApplication> swDocMgr; But I not found the interface classes (ISwDMClassFactory and ISwDMApplication) in any type libraries (TLB files). How access the...
  6. ZsZs

    2 occurrence from 1 assembly - may be without PackNGo?

    Hi! Have a any function in SW (2007 or above) with I use two occurence of one component? I have a assembly document, and I like to use this assembly (embedding in a another assembly) doubly. The difference only the components size. Must be use to 'Pack And Go' function to duplicate my...
  7. ZsZs

    How usable the AssemblyDoc::IAddComponent2 function (in the API)?

    Hi! I like the to use the IAddCmponent2 function of Assembly document. The help of Solidworks illustrate with a full example, but is not compiled, because was a error: the LPCOMPONENT type is undefined symbol. I don't found the symbol declaration... After that I exchange the LPCOMPONENT to...
  8. ZsZs

    What mean the transformation matrix, rotation submatrix parameters?

    Hi! I have a C++ program. I know to moving my components by this transformation matrix, but I like rotating too. The Solidworks help wrote at the MathTransform Object: "The SolidWorks transformation matrix is stored as a homogeneous matrix of 16 elements, ordered as shown. The first 9 (a to...
  9. ZsZs

    Adding component to a new assembly document

    Hi! I create a new assembly doc (from my C++ program) and I like adding by assembly component to it. But don't work... :-( I like the adding the component to the assembly by the AddComponent4() function. The function result: hres = S_OK (it's good) but a pointer to the component is...
  10. ZsZs

    Resizing identifical parts in assembly?

    Hi! We have a another (bigger) problem. We have a 2 part document in 1 assembly doc. The parts are identifical: for example both same a cabinet (derived from 1 part file). Both reference to the 1 part file. The difference must be between the 2 instance only the cabinet size. And now, if I...
  11. ZsZs

    Changing the object distance from the origin (API - COM)

    Hi! I'am a C++ programmer. I like to change the my object (in .SLDPRT file) distance from the origin (X, Z, Y coordinate) in my C++ (COM) program. Which object and method do it? (Enough only the object/method name...) Sorry a lamer question, but I'm lost in the SW object-tree... :-) Thanks! ZsZs.
  12. ZsZs

    Change parameter value at assembly doc in API

    Hi! I'm programmer, and not CAD designer. I have a big problem: The parameter handling by the part document was success and it working... But now, if I have (only) a parameter name (for example: S@Vázlat1) and I known the assembly document name (for example: LABE00.SLDASM), and I dont known the...

Part and Inventory Search