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...
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)?
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...
I have simple program where I have a vector which represent normal of slected plane.Now I want to make a cross product between nthis vector and for example one vector of origin (x or y or z).How make taht?please help me...Below is a source code:
Option Explicit
Sub main()
Dim swApp As...
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...
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...
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...
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...
Hello... I have oncemore problem... I want save in text file a data for example: center of selected surface... not only text...I Try combine your macro handleman but i don't know how... It is possible save in text file coordinates of center of surface (XYZ)?If You can and have a time please...
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...
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...
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...
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...
hello.
I try make it but I dont know how... Below is the code macro from internet.I dont give my code because is very long... I want make that when i run it I have information for example:Select Surface. Then macro "wait" for me and I can select surface and click ok or something like that.I want...