trying to amend a custom LISP routine ti include polylines

trying to amend a custom LISP routine ti include polylines

Anonymous
Not applicable
880 Views
2 Replies
Message 1 of 3

trying to amend a custom LISP routine ti include polylines

Anonymous
Not applicable

Hello to all:

 

I have a custom LISP that I am trying to append with additional code.  The routine as it currently exists will place only LINES on specified layers.  I also need it to assign polylines to layers.  I have a code snippet from another LISP that does this perfectly...but I can't get it into the right position inside the line-only LISP.

 

I've tried inserting it at the beginning, right after "selecting all lines inside block in block editor", and alternatively at the near end, after the program is specifically done dealing with the lines and right before the block editor is closed.  Both times, no dice.  I understand how most of the code works, but there must be some overall formatting problem that I'm not understanding.  One of the errors I was getting was "multiple cdrs"....

 

I've attached the LISP routine, the snippet I need inserted, and an example block.  Can someone please me out by getting it into the right spot?  Thanks very much in advance for any help!

0 Likes
Accepted solutions (1)
881 Views
2 Replies
Replies (2)
Message 2 of 3

marko_ribar
Advisor
Advisor
Accepted solution

The problem was not in multiple cdrs, but you specified layer name wrong - it's named : "HILMOT SENSORS" not "HILMOT-SENSORS"... Also the problem with my CAD was (vlax-get b 'StartPoint) and (vlax-get b 'EndPoint)... I've changed those to (vlax-curve-getStartPoint b) and (vlax-curve-getEndPoint b)... Everything else is fine and worked for me as it should... As a side note I formatted lisp in VLIDE to include spaces instead of TABs so that it's now prettier while inspecting the code through Text Editor like Notepad or Notepad ++... I'll attach LSP, HTH, M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 3 of 3

Anonymous
Not applicable

Great!  Marvelous!  Thanks!!! Smiley Happy

0 Likes