Robot OS with excel vba

Robot OS with excel vba

Anonymous
Not applicable
2,566 Views
11 Replies
Message 1 of 12

Robot OS with excel vba

Anonymous
Not applicable

Hi.

 

I need your help.

 

I need create my makro with excel vba to do a model to bridge deck. I want learnt about de Robot OS and before start my model, I am testing some simples makros but I can not understand why "error 13: type mistache" appear when I run simple makro like I show in printscrin.

Sorry my english.

 

Thanks a lot.

 

Márcio Teixeira

 

0 Likes
Accepted solutions (2)
2,567 Views
11 Replies
Replies (11)
Message 2 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
Have you added reference to Robot Object Modeler ..?
In which line do you see error ?


Rafal Gaweda
0 Likes
Message 3 of 12

Anonymous
Not applicable

yes I added.

 

The error appears in line: "Set s = robapp.Project.Structure"

 

 

0 Likes
Message 4 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
0 Likes
Message 5 of 12

Anonymous
Not applicable

I can't find what is wrong.

 

I show printscrin with references.

What else references is necessary?

0 Likes
Message 6 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution
Turn off .. Kernel... in References.


Rafal Gaweda
0 Likes
Message 7 of 12

Anonymous
Not applicable

Nice, worked.

 

Thanks a lot.

 

Márcio Teixeira

0 Likes
Message 8 of 12

Anonymous
Not applicable

Hi again.

 

Before close that topic I have one more error (I'm to learnt yet) in my macro when I was create a new support. The error said "object required".

Please watch my printscrin.

 

Thanks

Márcio Teixera

0 Likes
Message 9 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Do you have this :?

 

publicrobapp.jpg



Rafal Gaweda
0 Likes
Message 10 of 12

Anonymous
Not applicable

yes, I have in top (declarations). 

But inside all subs () is necessary start by:

"Dim Robapp As RobotApplication
Set Robapp = New RobotApplication" ? 

0 Likes
Message 11 of 12

Anonymous
Not applicable

 

I do something with you said, Public, dim and set and is running now.

 

Thanks

Márcio Teixeira

0 Likes
Message 12 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
0 Likes