Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp problem inserting Attributes

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
137 Views, 2 Replies

Lisp problem inserting Attributes

We have a Lisp routine that we are trying to run in AutoCAD2000. The Lisp
routine should bring up the attribiute dialogue box, however the commands
only appear on the command line.
Below is a copy of the Lisp routine we are using.

(defun c:test ()

(command "attdia" "1")

(command "insert" "c:/temp/a1text" "0,0" "1" "1" "0")

)

Any ideas or help please !!

regards

Si Morton
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Try inserting the block without specifying the attributes, then call ddatte
with the "last" entity.

(defun c:test ()

(setvar "attreq" 0)

(command "insert" "c:/temp/a1text" "0,0" "1" "1" "0")

(command "ddatte" "l")

(setvar "attreq" 1)

)

You should have an error handeler here to make sure the attreq ssystem
variable is set back to 1.

Hope this helps.

--
Rune Wold
Application Designer
Engineering Systems
rune@engsys.no
--

"Si Morton" wrote in message
news:eeff5c4.-1@WebX.SaUCah8kaAW...
> We have a Lisp routine that we are trying to run in AutoCAD2000. The Lisp
> routine should bring up the attribiute dialogue box, however the commands
> only appear on the command line.
> Below is a copy of the Lisp routine we are using.
>
> (defun c:test ()
>
> (command "attdia" "1")
>
> (command "insert" "c:/temp/a1text" "0,0" "1" "1" "0")
>
> )
>
> Any ideas or help please !!
>
> regards
>
> Si Morton
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks Rune,

Thats worked

regards

Si Morton

Rune Wold wrote in message
news:eeff5c4.0@WebX.SaUCah8kaAW...
> Try inserting the block without specifying the attributes, then call
ddatte
> with the "last" entity.
>
> (defun c:test ()
>
> (setvar "attreq" 0)
>
> (command "insert" "c:/temp/a1text" "0,0" "1" "1" "0")
>
> (command "ddatte" "l")
>
> (setvar "attreq" 1)
>
> )
>
> You should have an error handeler here to make sure the attreq ssystem
> variable is set back to 1.
>
> Hope this helps.
>
> --
> Rune Wold
> Application Designer
> Engineering Systems
> rune@engsys.no
> --
>
> "Si Morton" wrote in message
> news:eeff5c4.-1@WebX.SaUCah8kaAW...
> > We have a Lisp routine that we are trying to run in AutoCAD2000. The
Lisp
> > routine should bring up the attribiute dialogue box, however the
commands
> > only appear on the command line.
> > Below is a copy of the Lisp routine we are using.
> >
> > (defun c:test ()
> >
> > (command "attdia" "1")
> >
> > (command "insert" "c:/temp/a1text" "0,0" "1" "1" "0")
> >
> > )
> >
> > Any ideas or help please !!
> >
> > regards
> >
> > Si Morton
> >
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost