(API) Installed 2016 and Project.Structure.ApplyCache only ads nodes.

(API) Installed 2016 and Project.Structure.ApplyCache only ads nodes.

jokiller70
Advocate Advocate
464 Views
4 Replies
Message 1 of 5

(API) Installed 2016 and Project.Structure.ApplyCache only ads nodes.

jokiller70
Advocate
Advocate

Any idéas?

0 Likes
Accepted solutions (1)
465 Views
4 Replies
Replies (4)
Message 2 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support

Really ?

Try this code:

 

Set RobApp = New RobotApplication

Dim RC As RobotStructureCache

Set RC = RobApp.Project.Structure.CreateCache

For I = 1 To 1001
    RC.AddNode I, I * 10, 0, 0
Next I

For I = 1 To 1000
    RC.AddBar I, I, I + 1, "IPE 100", "STEEL"
Next I

RobApp.Project.Structure.ApplyCache RC
RobApp.Project.ViewMngr.Refresh

 



Rafal Gaweda
0 Likes
Message 3 of 5

jokiller70
Advocate
Advocate

Same problem, a lot of nodes, but no bars.

0 Likes
Message 4 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution



Rafal Gaweda
0 Likes
Message 5 of 5

jokiller70
Advocate
Advocate

Something was wrong with my template from 2015...

0 Likes