Runtime Error

Runtime Error

Anonymous
Not applicable
414 Views
2 Replies
Message 1 of 3

Runtime Error

Anonymous
Not applicable
Sorry, the other question appeared as an answer.

This line gives me an automation run time error, and I can't see why

Set newBlock = ThisDrawing.ModelSpace.InsertBlock(ptText,
cmbBlock.Value, 1#, 1#, 0#, 0)



cmbBlock.value returns the name of an existing block,

ptText, returns double values for coordinates...

The error is run time error : HEX 8000ffff

method "insertblock" of object IacadModelSpace... but I don't use
IacadModelSpace....???

Someone have an Idea?
0 Likes
415 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Why is the Z scale set to 0?

--
R. Robert Bell, MCSE
www.AcadX.com


"Yves Allaire" wrote in message
news:[email protected]...
> Sorry, the other question appeared as an answer.
>
> This line gives me an automation run time error, and I can't see why
>
> Set newBlock = ThisDrawing.ModelSpace.InsertBlock(ptText,
> cmbBlock.Value, 1#, 1#, 0#, 0)
>
>
>
> cmbBlock.value returns the name of an existing block,
>
> ptText, returns double values for coordinates...
>
> The error is run time error : HEX 8000ffff
>
> method "insertblock" of object IacadModelSpace... but I don't use
> IacadModelSpace....???
>
> Someone have an Idea?
>
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks, It's an old macro... where the Z component wasn't available, and the
error message wasn't clear about the actual error!


"R. Robert Bell" a écrit dans le message de news:
[email protected]...
> Why is the Z scale set to 0?
>
> --
> R. Robert Bell, MCSE
> www.AcadX.com
>
>
> "Yves Allaire" wrote in message
> news:[email protected]...
> > Sorry, the other question appeared as an answer.
> >
> > This line gives me an automation run time error, and I can't see why
> >
> > Set newBlock = ThisDrawing.ModelSpace.InsertBlock(ptText,
> > cmbBlock.Value, 1#, 1#, 0#, 0)
> >
> >
> >
> > cmbBlock.value returns the name of an existing block,
> >
> > ptText, returns double values for coordinates...
> >
> > The error is run time error : HEX 8000ffff
> >
> > method "insertblock" of object IacadModelSpace... but I don't use
> > IacadModelSpace....???
> >
> > Someone have an Idea?
> >
> >
> >
> >
>
>
0 Likes