Search the Community
Showing results for tags 'insert command'.
-
Insert block command calls the "HELP" function
weiglas posted a topic in AutoLISP, Visual LISP & DCL
Hi, I have a Lisp that insert blocks, but some blocks requires a value to an attribute, and some not. So, I wrote the (command "INSERT" theBlock pt "" "" "" "") when the block requires a value attribute, its insert with nothing the last double quotes, but when the block doesn't requires a value the last double quotes calls the "HELP" windows. I have been thinking several ways to deal with it, like disable the HELP command, but the INSERT command still calling the HELP with the last commas. And verify if the block requires a attribute value before insert then, but I didn't find a way to do it. I appreciate any sugestions!- 2 replies
-
- insert command
- help command
-
(and 2 more)
Tagged with:
-
I'm currently working on a script to (semi) automise drawing rail constructions. This is going fine, except for one very odd issue. I'm quite a beginner, so please bear with me. I have to insert a block with an attribute. Since I want to avoid using ent* commands, I wrote the script using (command "INSERT" blockname coordinates "" "" "" attributevalue). At home this worked, yet at work the lisp engine treats the 'attributevalue' as a new command. Is there an AutoCAD variable or something else that determines the definition of attributes in the insert command? Both AutoCAD versions are 2010 vanilla, except for some heavy third party scripts and programs for work, which I can't and don't want to disable.
- 7 replies
-
- blocks
- attribute definition
-
(and 1 more)
Tagged with: