Jump to content

Recommended Posts

Posted

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" "")
	)

Posted

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?

Posted

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")
)	

Posted

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.

Posted

What do you mean "account for language"?

Posted
What do you mean "account for language"?

In case you aren't using an English version of AutoCAD.

Posted

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.

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