Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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: picia
  • Order by date
  1. picia

    Cross product of vectors - macro

    Ok handleman, Your proposition is good.Thanks for Your time and patience:)!
  2. picia

    Cross product of vectors - macro

    So, I want obtain a coordinates system where one of axis is normal to surface(vector of normal). Next axis must be a orthogonal to this normal. When I have this two vectors I can obtain third vector using cross product...
  3. picia

    Cross product of vectors - macro

    Yes, You have right handleman.But this is only good when normal is (0,0,1) or (0,1,0) or (1,0,0).And how willbe perpendicular vector when normal willbe for example (0.4251, 0, 0.687)?
  4. picia

    Cross product of vectors - macro

    Oh, Thanks handleman.I amke something like You... but your proposition is good. I think about this, that one of component to cross product (You proposs swCPwithX or swCPwithY or swCPwithZ) will be perpendicular to normal of selected surafce... I try use function in MathVector but there are...
  5. picia

    Cross product of vectors - macro

    ..." _ & vbCrLf & vbCrLf & " Normal = (" & vPlane(0) & ", " & vPlane(1) & ", " & vPlane(2) & ")" _ & vbCrLf & vbCrLf & " Root = (" & vPlane(3) * 1000# & ", " & vPlane(4) * 1000# & ", " & vPlane(5) * 1000# & ") mm" _ & vbCrLf & vbCrLf & " File = " & swModel.GetPathName End If...
  6. picia

    Cross product of vectors - macro

    Hi, I wan to build a macro which give me new vector using function MathVector.Cross . One of input vector is a normal of surface (for example plane) and a second is one of axis of origin. So, I want obtain vector emergent with this two inputs vectors... If this possible?If You have any ideas...
  7. picia

    Point relatively to origin

    So, part have many surface. I have a program which give me data about center of selected surface and normal to this surface. When we have a normal axis we can build some coordinate system based on this normal selected surface. Now we have this coordinate system build on normal axis. Now I wish...
  8. picia

    Point relatively to origin

    Hi, I have a surface and normal to surface.Now I want to put along this normal one of axis of coordinates system (not origin). Then I want have other 2 axis of coordinates system. At the end i would be great express how axis of this coordinate system are relativly to origin.(that they are for...
  9. picia

    Macro which save data a text file...

    Your advices are very helpful for me, so I'm greatful.Thanks!
  10. picia

    Macro which save data a text file...

    Yeah... this is great... but how make that macro willbe save more data in text file and don't delete earlier saved data in this text file only add in writing below earlier saved text... For example I want not only save center of surface, taht for example length on line...
  11. picia

    Macro which save data a text file...

    ...swApp.SendMsgToUser " Center of selected surface: " _ & vbCrLf _ & vbCrLf & " X = " & XYZ(0) * 1000 & " mm" _ & vbCrLf & " Y = " & XYZ(1) * 1000 & " mm" _ & vbCrLf & " Z = " & XYZ(2) * 1000 & " mm"...
  12. picia

    Macro which save data a text file...

    Exactlly this is it... I forgot check library in VBA... Thanks for YOu oncemore!
  13. picia

    Macro which save data a text file...

    hello handleman. I have a problem. When I try run macro which You write i have a message: Type of definition is non define, and this line is lighted Dim fso As Scripting.FileSystemObject In my version SolidWorks i don't have something like: Scripting, so I cannot difine fso like that... I use...
  14. picia

    Coordinates of point - macro

    It willbe good when this point is the closest to where the user clicked to select surface, if it is possible...
  15. picia

    Coordinates of point - macro

    Hello.I'm working with SolidWorks API not so long.I try make, then find macro which allow get coordintes of point (for example of surface). I don't want vertex and edge point because this I know how get. I want get coordinates any point of surface... If You have any odeas and have time to help...
  16. picia

    Macro which save data a text file...

    thanks handleman that is it!
  17. picia

    Macro which save data a text file...

    hello. I find macro which allow save data in excell file.But i want save data in text file.How make that?Do You have any ideas?I willbe graetfull for yours help...
  18. picia

    Macro "wait" till I select surface -possible?

    Thanks Handleman for your help.... I only need this part: 'This section is the actual "waiting" portion. While SelMgr.GetSelectedObjectCount < MINSELECTIONS DoEvents 'Wait for user selection Wend and this is what i needed.Thanks oncemore...
  19. picia

    Macro &quot;wait&quot; till I select surface -possible?

    ...only when macro is runing... If You have any ideas please help me.I willby greatful for Your help... Example code: Sub GetXYZofSurfaceCentroid() '*********************************** 'Get XYZ coordinates of centroid and load 'them into array "XYZ" '*********************************** Dim...
  20. picia

    Connect two macros...how?

    Oh yeah!That is that what I need!Thanks handleman for your great help!!!

Part and Inventory Search

Back
Top