ali1234 Posted October 13, 2015 Share Posted October 13, 2015 Hi, I am new in Autocad. I want create the following figure(2D) in Autocad as follows: I tried to create a vector, but I couldn't do it. In fact, I don't know that how do i create a vector in Autocad. I am grateful that guide me about this case. Thanks. Best. Ali Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 13, 2015 Share Posted October 13, 2015 Wouldn't that be covered in your Help file under the topic heading "Use Points and Vectors (CAL Command)"? See also: "Calculate a Normal Vector" and "Calculate a Vector from Two Points". Quote Link to comment Share on other sites More sharing options...
ali1234 Posted October 13, 2015 Author Share Posted October 13, 2015 Hi, I searched in help of autocad but I didn't understand anything. Help of autocad is weak in term of explaning and presenting figures about vector. I also searched in youtube but I didn't find anything about this case. I am grateful that guide me more. Thanks. Best. Ali Quote Link to comment Share on other sites More sharing options...
lrm Posted October 13, 2015 Share Posted October 13, 2015 The first question you might ask is what is the difference between a vector and a point? One definition of a vector is “a quantity having direction as well as magnitude”. A point is a location in space. For this discussion let’s assume the space is three dimensional. We can think of a point as a vector but this assumes that the base of the vector is tied to the coordinate system’s origin (0,0,0). Unlike points, vectors are free to float in space and are not necessarily tied to 0,0,0. You must keep this in mind when working with points as if they were vectors. You can use a variety of methods to create a point in AutoCAD. AutoCAD also let’s you use points to calculate normal vectors and from point to point values as noted in ReMax’s post. So, to find the vector from (1,2,3) to (4,-3,5) you would enter: Cal vec1([1,2,3],[4,-3,5]) which would yield: 3,-5,2 The vector from 1,2,3 to 4,-3,5 I don’t know how to add vectors in straight AutoCAD commands but have found the mapcar AutoLISP function useful. Here’s a simple AutoLISP program to add two vectors. (defun c:vec-add (/) (setq a (getpoint "\nSpecify point A") b (getpoint a "\nSpecify point B") c (mapcar '+ a b) ) (princ "\n A + B = ") (princ c) (princ) ) What is it that you would like to do with vectors? ~Lee Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.