Jump to content

Brainteaser LISP...


Recommended Posts

Guest looseLISPSsinkSHIPS
Posted

Hi,

 

we have this old lisp that seams to bug me quite a bit as I cant think of a way around it.

 

The lisp posted bellow is suppose to be continuing as similar to the dimcontinue command. However adding this “dimcontinue” feature to the lisp invalidates/ halts/ skips the pause command.

 

We have tried extensively to better this however to no avail. Perhaps someone out there knows the solution to our brainteaser?

 

;;;=== START OF CODE===

 

(defun c:Peilmaatvoering ()

(setq curDimSty (getvar 'dimstyle))

(command

".Layer" "Make" "Maatvoering" ""

"dimstyle" "Restore" "Peilmaatvoering"

"_dimlinear" "dimpost" "+" "Dimcontinue"

)

(while (= (logand (getvar "cmdactive") 1) 1)

(command pause)

)

(command

"_dimstyle" "restore" curDimSty

"_Layerp"

)

)

 

;;;===END OF CODE===

 

Thanks-

Guest looseLISPSsinkSHIPS
Posted

that stuipid smalie face is supose to say C: P -eilmaatvoering, dang!

Posted
that stuipid smalie face is supose to say C: P -eilmaatvoering, dang!

 

Try posting the code next time using the code brackets feature.

 

Look for the # icon on the advanced posting. Place your code between them. It should look like this below.

 

(defun c:P-eilmaatvoering ()
(setq curDimSty (getvar 'dimstyle))
(command
".Layer" "Make" "Maatvoering" ""
"dimstyle" "Restore" "Peilmaatvoering"
"_dimlinear" "dimpost" "+" "Dimcontinue"
)
(while (= (logand (getvar "cmdactive") 1) 1)
(command pause)
)
(command
"_dimstyle" "restore" curDimSty
"_Layerp"
)
)

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