creation of panels in RSA with RSA API via Dynamo

creation of panels in RSA with RSA API via Dynamo

Anonymous
Not applicable
1,203 Views
3 Replies
Message 1 of 4

creation of panels in RSA with RSA API via Dynamo

Anonymous
Not applicable

Hi all
I'm trying to create a panel in RSA via Dynamo, by CreateContour and then assigning a thickness to the contour.
The problem is that the thickness will not be added to the contour in RSA, it is only the contour that is defined.
Someone who sees what's wrong in the kode that is laid down? (has it someting to do with the numbering of contour and Panels?) 

 

Thanks

countur and panel.PNG

 

0 Likes
Accepted solutions (1)
1,204 Views
3 Replies
Replies (3)
Message 2 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous 

 

See C# code which works well:

           RobotApplication r = new RobotApplication();
            int fn = r.Project.Structure.Objects.FreeNumber;
            RobotPointsArray pa = r.CmpntFactory.Create(IRobotComponentType.I_CT_POINTS_ARRAY);
            pa.SetSize(4);
            pa.Set(1, 0.0, 0.0, 0.0);
            pa.Set(2, 1.0, 0.0, 0.0);
            pa.Set(3, 1.0, 1.0, 0.0);
            pa.Set(4, 0.0, 1.0, 0.0);
            r.Project.Structure.Objects.CreateContour(fn, pa);
            RobotObjObject ro = (RobotObjObject)r.Project.Structure.Objects.Get(fn);
            ro.Main.Attribs.Meshed = 1;
            ro.Initialize();
            ro.SetLabel(IRobotLabelType.I_LT_PANEL_THICKNESS, "TH30_CONCR");
            ro.Update();

Maybe Your panel thickness does not exist yet (before applying) ?



Rafal Gaweda
Message 3 of 4

Anonymous
Not applicable

Thanks for the quick reply! It works fine now Smiley Very Happy

0 Likes
Message 4 of 4

Anonymous
Not applicable
RobotObjObject ro = (RobotObjObject)r.Project.Structure.Objects.Get(fn);

How do i rewrite the line in C or VBA or C++  

0 Likes