Can't add varable - got script error

Can't add varable - got script error

Anonymous
Not applicable
720 Views
6 Replies
Message 1 of 7

Can't add varable - got script error

Anonymous
Not applicable
Hi,
I 'm trying to add a variable using the Autodesk Class Explorer - Add
Variable
I get a Runtime error saying:

Line: 214
Error: 'Bases.Count' is null or not an object.

The error occur in the file arxCommon.js

Any clue?

htht

Johannes
0 Likes
721 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
What is the base class of your class?
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com


"Johannes P. Hansen" wrote in message
news:5634915@discussion.autodesk.com...
Hi,
I 'm trying to add a variable using the Autodesk Class Explorer - Add
Variable
I get a Runtime error saying:

Line: 214
Error: 'Bases.Count' is null or not an object.

The error occur in the file arxCommon.js

Any clue?

htht

Johannes
0 Likes
Message 3 of 7

Anonymous
Not applicable
Hi Owen,

I am pretty new to ObjectARX, so I tried out lab 3 in "ObjectARX for
dummies"
http://arxdummies.blogspot.com/2005/05/lab-3-solved.html

and I got to the point where I have added the ShapeObject, and I was going
to add the variable m_d when I got the error.
Base class must be AcDbObject.

Kind regards
Johannes P. Hansen


"Owen Wengerd" wrote in message
news:5635195@discussion.autodesk.com...
What is the base class of your class?
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com


"Johannes P. Hansen" wrote in message
news:5634915@discussion.autodesk.com...
Hi,
I 'm trying to add a variable using the Autodesk Class Explorer - Add
Variable
I get a Runtime error saying:

Line: 214
Error: 'Bases.Count' is null or not an object.

The error occur in the file arxCommon.js

Any clue?

htht

Johannes
0 Likes
Message 4 of 7

Anonymous
Not applicable
Johannes:

Offhand I'm not sure why it's failing. I'm not familiar with those labs,
but I suggest emailing the author or posting a comment at that site. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 5 of 7

Anonymous
Not applicable
Thanks Owen.
It's not just that lab. I have created projects from scratch on different
PC's, added an ObjectDBX custom object succesfully but when it comes to add
a member variable to the object same result - it fails.
Guess I have to add the member variables the good old way, doing it by hand.

Kind regards
Johannes P. Hansen

"Owen Wengerd" wrote in message
news:5635682@discussion.autodesk.com...
Johannes:

Offhand I'm not sure why it's failing. I'm not familiar with those labs,
but I suggest emailing the author or posting a comment at that site. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 6 of 7

Anonymous
Not applicable
You might try updating your ObjectARX wizard to see if that helps.
Otherwise, debug the offending javascript code yourself to see what is going
on. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 7 of 7

Anonymous
Not applicable
I have installed the ObjectARX 2008; but with no success.
The problem seems to be relatetd to something else than the ObjectARX.

The scrips error occure in the file: C:\Program Files\Autodesk\ObjectARX
Wizards for AutoCAD 2008\ArxWizCommon\arxCommon.js in the line 214. The
cls.Bases.Count doesn't seem to set correct.
Problem is that I don't know anything about the Wizard, so I can't figure
out where to look.

Thanks for Your continous support.

HTH
Johannes

"Owen Wengerd" skrev i en meddelelse
news:5636329@discussion.autodesk.com...
You might try updating your ObjectARX wizard to see if that helps.
Otherwise, debug the offending javascript code yourself to see what is going
on. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes