Jump to content

no functions definion in line 478 col 4, can someone help me


Satya

Recommended Posts

Just a guess but ssget didn't find anything so ssbo is nil. When calling sslenght on line 479 its looking at nil rather then a selection set and errors.

Add an if in front of the ssget. So if it doesn't find anything it skips the code.

 

(if (setq ssbo (ssget '((0 . "LWPOLYLINE") (8 . "BATAS BIDANG"))))
  (repeat (setq slbo (sslength ssbo))
    ...
    ...
    (setq klikpolykor (list entbo korbo))
  )
)

 

-edit

Its best to post the whole code. Something else could be happening. Its like taking your car the the mechanic but only letting him look at it from 20' away or at a picture and then asking whats wrong.

Edited by mhupp
  • Like 2
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...