Jump to content

Calling Lisp routine from within another


broncos15

Recommended Posts

Going back to your first post a simple method to load a lisp rather than autoloading is to just check if the defun exists and if not load the lisp.

 

(setq sel5 (ssget "X" '((0 . "INSERT"))))
(if (not c:blockchangeentitiestolayer0)(load "blockchangeentitiestolayers0"))
(c:blockchangeentitiestolayer0 sel5 "") 

Edited by BIGAL
Link to comment
Share on other sites

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • Tharwat

    10

  • broncos15

    9

  • satishrajdev

    2

  • BIGAL

    1

Top Posters In This Topic

Going back to your first post a simple method to load a lisp rather than autoloading is to just check if the defun exists and if not load the lisp.

 

What's if the lisp is not existed at all ?

 

(setq sel5 (ssget "X" '((0 . [color=red]"BLOCK"[/color]))))

 

Re-look at the name of the entity again.

Link to comment
Share on other sites

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...