Jump to content

Recommended Posts

Posted

i have two sets of points, taken on two different surveys.

 

having converted the survey info to dxf, im just at the point of insert the two separate surveys into the one model space and rotating them to fit into their real world position ontop of a map.

 

having done this, i go ahead and change the point style and lo and behold the X's are not all rotated the same extent!

 

i never realised that one model space could have any difference in point style.

 

and ive certainly no idea how to change the rotation of the points.

 

my aim is to have all the point X at the same degree rotation.

 

any help appreciated.

 

Phil

Posted

PhilMont,

The orientation of the point reflects the angle of the UCS that the point was created in. There may be other ways to do it, but this lisp program changes the angle of all points in the drawing to zero.

 

(defun c:fixpt (/ allpts llen n pname pell)
(setq allpts (ssget "X" '((0 . "POINT"))))
(setq llen (sslength allpts))
(setq n 0)
(while (< n llen)
 (setq pname (ssname allpts n))
 (setq pell (entget pname))
 (setq pell (subst (cons 50 0) (assoc 50 pell) pell))
 (entmod pell)
 (setq n (+ n 1))
)
(setq allpts nil)
(princ)
)

  • 2 weeks later...
Posted
PhilMont,

The orientation of the point reflects the angle of the UCS that the point was created in. There may be other ways to do it, but this lisp program changes the angle of all points in the drawing to zero.

 

(defun c:fixpt (/ allpts llen n pname pell)
(setq allpts (ssget "X" '((0 . "POINT"))))
(setq llen (sslength allpts))
(setq n 0)
(while (< n llen)
 (setq pname (ssname allpts n))
 (setq pell (entget pname))
 (setq pell (subst (cons 50 0) (assoc 50 pell) pell))
 (entmod pell)
 (setq n (+ n 1))
)
(setq allpts nil)
(princ)
)

 

 

quick newbie q,

 

what exactly is a lisp program?

 

and do i just copy and paste the code into my command bar?> :oops:

 

sorry to make you answer such a silly question but i read lisp program on here everytime i log in, so i gotta ask sometime. :? :unsure:

 

thanks in advance

 

Phil

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...