PDA

View Full Version : Angle of an embeded line or polyline


cadconcepts
2006-02-24, 02:43 AM
Hi Everyone-

I am looking for some help trying to find the angle of a line or polyline within an block or xref. My routine starts with the following piece of code. I can find the angle of lines and polylines within current drawing but not those that reside within a block or an xref. Any help is greatly appreciated.


(Setq sset (nentsel "Select object: "))
(setq ent (car sset)
entlst (entget ent)
)

Thanks.

Manuel A. Ayala

rkmcswain
2006-02-24, 03:46 AM
Hi Everyone-

I am looking for some help trying to find the angle of a line or polyline within an block or xref. My routine starts with the following piece of code. I can find the angle of lines and polylines within current drawing but not those that reside within a block or an xref. Any help is greatly appreciated.


(Setq sset (nentsel "Select object: "))
(setq ent (car sset)
entlst (entget ent)
)

Thanks.

Manuel A. Ayala


What's not working with that?
Your first line returns
(<Entity name: 7ed54a90>
(5039.21 6266.89 0.0)
((1.0 0.0 0.0) (0.0 1.0 0.0) (0.0 0.0 1.0) (0.0 0.0 0.0))
(<Entity name: 7ed95528>)
)
of which item 0 is the entity name of the selected line. Item 3 is the entity name of the block itself.

The other two lines work also.