TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dussla on May 09, 2018, 05:10:06 AM
-
Hello seniors
I have come a long time, but I will have to ask you again
I'm really sorry
As a beginner, I can not lift my face except for help,
I'm really sorry
I try to change the block, not the difference.
There is yellow and red block
I would like to change red block with yellow block
so i tested many block change lisp
Could you tell me how?
i attched cad file ~
-
I'm sure there is a language barrier but I cannot tell what your problem / question is.
-
Here's a simple example assuming that your blocks are already the same size like in your example drawing.
(defun c:foo
(/ a b b1 b2 c d
) )
)
)
)
-
I really appreciate it.
It's perfect.
I do not know why other Lisps do not work
I do not know if the blocks are missing.
I am trying to modify the code of those who have excellent programming skills
It's really difficult
May I ask you one more thing?
I want to exchange lots of blocks
With one yellow block
If you have a lot of code to fix if you have a lot of red blocks to replace
Thank you so much
Once again, outstanding talent is a compliment.
-
Try this:
(defun c:foo
(/ b co s w x y z
) (print "Pick blocks to replace: ") )
)
)
)
)
-
really thank you for your effort~
pls can you check errro
there is error
error: bad argument type: numberp: nil
sorry ~~~
-
Post a sample drawing.
-
Post a sample drawing.
this dwg file ~~
thank you for helping ~~
-
Post a sample drawing.
this dwg file ~~
thank you for helping ~~
Works here .. not sure what is going on.
-
Solved
My notepad++ sometimes has an error.
Thank you very much
I always envy your great ability.
This is the time to sleep.
I do not know what time it is in your country.
I really hope you have a comfortable and lucky day. :smitten:
-
Solved
My notepad++ sometimes has an error.
Thank you very much
I always envy your great ability.
This is the time to sleep.
I do not know what time it is in your country.
I really hope you have a comfortable and lucky day. :smitten:
Glad to help :)
-
Check AutoCAD Command : BLOCKREPLACE