Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Api IRobotBarCableData

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
pipu123
488 Views, 2 Replies

Api IRobotBarCableData

I created  Cables. I assigned  MaterialName ,  SectionAX.

1) I don't know how to assign data from cable to created bar

2) How to set AssemblingParameters to dataCable

IRobotBarCableAssemblingParamType.I_BCAPT_FORCE_FO

 

IRobotApplication robApp;

IRobotStructure structure;

 IRobotLabel Section;

 

 

string klasaStal = "S 355";

robApp = new RobotApplicationClass();

structure = robApp.Project.Structure;

 IRobotNodeServer inds = robApp.Project.Structure.Nodes;

IRobotBarServer ibars = robApp.Project.Structure.Bars;

                    IRobotBarCableData kabel;                  
                    string StrKabelSciana = "Kabel_2";
                    Section = structure.Labels.Create(IRobotLabelType.I_LT_BAR_CABLE, StrKabelSciana);
                    kabel = (IRobotBarCableData)Section.Data;
                    kabel.MaterialName = klasaStal;
                    kabel.SectionAX = 20 * 0.0001; // cm^2             

                    RobotSelection iselKabelSciana = robApp.Project.Structure.Selections.Create(IRobotObjectType.I_OT_BAR);                    

 

              inds.Create(1, 0, 0, 0);
                inds.Create(2, 5, 5, 0);
                    ibars.Create(1, 1, 2); // kabel lewa strona
                    iselKabelSciana.AddOne(1);
                    ibars.SetLabel(iselSciagSciana, IRobotLabelType.I_LT_BAR_CABLE, StrKabelSciana);
                    ibars.SetLabel(iselSciagSciana, IRobotLabelType.I_LT_MATERIAL, klasaStal);
                    
                    robApp.Project.Structure.Labels.Store(Section);
                    structure.Bars.SetLabel(iselSciagSciana, IRobotLabelType.I_LT_BAR_CABLE, StrSciagSciana);              
                     IRobotBarCableAssemblingParamType kabelFo;              
//kabelFo = IRobotBarCableAssemblingParamType.I_BCAPT_FORCE_FO;                    
                  //kabelFo.Equals
                  //  kabel.AssemblingParam = IRobotBarCableAssemblingParamType.I_BCAPT_FORCE_FO;
                  //  kabel.AssemblingParamValue = 100;
                  
                  
Thank You in Advance
                

2 REPLIES 2
Message 2 of 3
pipu123
in reply to: pipu123

I enclose the file, vs 2010, robot 2011

Message 3 of 3
Rafal.Gaweda
in reply to: pipu123

Store label after creating \ modification.

 

        private void setgeometry()
        {
            IRobotApplication robApp;
            IRobotStructure structure;
            IRobotLabel Section;
            string klasaStal = "S 355";

            robApp = new RobotApplicationClass();
            structure = robApp.Project.Structure;

            IRobotNodeServer inds = robApp.Project.Structure.Nodes;
            IRobotBarServer ibars = robApp.Project.Structure.Bars;

            IRobotBarCableData kabel;
            string StrKabelSciana = "Kabel_2";
            Section = structure.Labels.Create(IRobotLabelType.I_LT_BAR_CABLE, StrKabelSciana);
            kabel = (IRobotBarCableData)Section.Data;
            kabel.MaterialName = klasaStal;
            kabel.SectionAX = 20 * 0.0001; // cm^2             
            RobotSelection iselKabelSciana = robApp.Project.Structure.Selections.Create(IRobotObjectType.I_OT_BAR);
            
            inds.Create(1, 0, 0, 0);
            inds.Create(2, 5, 5, 0);
            ibars.Create(1, 1, 2); // kabel lewa strona
            iselKabelSciana.AddOne(1);


            
            kabel.AssemblingParam = IRobotBarCableAssemblingParamType.I_BCAPT_FORCE_FO;
            kabel.AssemblingParamValue = 1000;
            robApp.Project.Structure.Labels.Store(Section);

            ibars.SetLabel(iselKabelSciana, IRobotLabelType.I_LT_BAR_CABLE, StrKabelSciana);
            ibars.SetLabel(iselKabelSciana, IRobotLabelType.I_LT_MATERIAL, klasaStal);   
        
        
        }

 



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report