Jump to content

Error on chprop command for Talude Lisp Function.


cyberrog

Recommended Posts

Post Moved for Lisp Forum: here is the Link

 

I'm creating a function for talude. But, on the line:

 

command "chprop" ULT "" "LT" "" "autotalude1" "")

 

it doesnt recognizes the command.

 

can anyone tell me why?

 

Here is the part of the code where I invert the propertie:

 

(setq ULT (entlast))
	(command "pedit" ult "spline" "")
	(setvar "celtype" "autotalude2")

	(initget 1 "S N")
	(setq inv (getkword "\nWant to Invert?<S/N>"))
	(if (= inv "S")
		(command "chprop" ULT "" "LT" "" "autotalude1" "")
		(setvar "celtype" "autotalude1")
		;(command "pedit" ULT "r" "" "yes" "" "s" "")
		;(command "pedit" ult "S" "")
	)

Link to comment
Share on other sites

I'm pretty sure this post belongs in the LISP forum.

 

I don't have any talude lisp file (that I know of), perhaps you can post that as well?

Link to comment
Share on other sites

I'm creating a function for talude. But, on the line:

 

Code:

command "chprop" ULT "" "LT" "" "autotalude1" "")

it doesnt recognizes the command.

 

can anyone tell me why?

 

Here is the part of the code where I invert the propertie:

 

Code:

(setq ULT (entlast))
	(command "pedit" ult "spline" "")
	(setvar "celtype" "autotalude2")

	(initget 1 "S N")
	(setq inv (getkword "\nWant to Invert?<S/N>"))
	(if (= inv "S")
		(command "chprop" ULT "" "LT" "" "autotalude1" "")
		(setvar "celtype" "autotalude1")
)	

Link to comment
Share on other sites

If you type "S" at your getkword prompt, it should work. You could try account for language and redefining by using "_.chprop" instead. You could also try the old CHANGE command.

Link to comment
Share on other sites

I have combined your posts, there is no need to create two threads for same question. If you feel you have posted in wrong section, a moderator can move your thread for you. Multiple threads for the same question gets confusing.

 

Thank you.

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