VLAX error confusing.
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
VLAX error confusing.
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization

Author Message
BillZ
Guest





Posted: Fri Dec 17, 2004 10:24 pm    Post subject: VLAX error confusing. Reply with quote

R2005:

I have an error trying to AddEllipse.

I ran it from the vlide with no help on what exactly is wrong.

; error: Automation Error. Description was not provided.

(setq MaAxLen (vlax-make-variant ds1 vlax-vbDouble))
(vlax-invoke-method (list *modelspace* 'AddEllipse (vlax-3d-point pt1) MaAxLen rt)

So i run it form the command prompt:

Command: ; error: Automation Error. Description was not provided.

So after reading the help files and searching this forum, it seems to me I need to add a catch-all error to help discipher this generic error, so I add to program.

(setq ErrMsg (vl-catch-all-apply
'vlax-invoke-method (list *modelspace* 'AddEllipse (vlax-3d-point pt1) MaAxLen rt)
))

(if (vl-catch-all-error-p ErrMsg)
(prompt (strcat "Exception: " (vl-catch-all-error-message ErrMsg)))
)

Now I run the program again I get:

Coomand: Exception: Automation Error. Description was not provided.

Can I get some help for this?

TIA

Bill

Back to top
R. Robert Bell
Guest





Posted: Fri Dec 17, 2004 10:38 pm    Post subject: Re: VLAX error confusing. Reply with quote

The MajorAxis argument needs to be a point, not a simple double. See the
example in the docs and not just the incorrect description.

--
R. Robert Bell


"BillZ" <nospam@address.withheld> wrote in message
news:17204384.1103304305826.JavaMail.jive@jiveforum2.autodesk.com...
R2005:

I have an error trying to AddEllipse.

I ran it from the vlide with no help on what exactly is wrong.

; error: Automation Error. Description was not provided.

(setq MaAxLen (vlax-make-variant ds1 vlax-vbDouble))
(vlax-invoke-method (list *modelspace* 'AddEllipse (vlax-3d-point pt1)
MaAxLen rt)

So i run it form the command prompt:

Command: ; error: Automation Error. Description was not provided.

So after reading the help files and searching this forum, it seems to me I
need to add a catch-all error to help discipher this generic error, so I add
to program.

(setq ErrMsg (vl-catch-all-apply
'vlax-invoke-method (list *modelspace* 'AddEllipse (vlax-3d-point pt1)
MaAxLen rt)
))

(if (vl-catch-all-error-p ErrMsg)
(prompt (strcat "Exception: " (vl-catch-all-error-message ErrMsg)))
)

Now I run the program again I get:

Coomand: Exception: Automation Error. Description was not provided.

Can I get some help for this?

TIA

Bill
Back to top
BillZ
Guest





Posted: Fri Dec 17, 2004 11:20 pm    Post subject: Re: VLAX error confusing. Reply with quote

Quote:
See the
example in the docs and not just the incorrect description.


that did it.

Thanks

Bill
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB