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: 

charges « linéaires 2P » et aux charges « linéaires sur bord » (API)

9 REPLIES 9
Reply
Message 1 of 10
ClaudeSAINTJEAN3202
564 Views, 9 Replies

charges « linéaires 2P » et aux charges « linéaires sur bord » (API)

 

Vous m’avez expliqué, il y a quelques jours comment  récupérer les coordonnées des points  pour le type de charges décrites par 3 points sur des éléments surfaciques d'un modèle Robot.

 

For j = 1 To serveurcharges.Count

        Set RC = serveurcharges.Get(j)

        If serveurcharges.Get(j).Type = I_LRT_IN_CONTOUR Then

            Set RLRC = serveurcharges.Get(j)

            For jj = 1 To RLRC.GetValue(I_ICRV_NPOINTS)

                RLRC.GetContourPoint jj, x, y, z

            Next jj

           

        Else

            If Not RC.IsAutoGenerated Then

                Set charges = serveurcharges.Get(j)

            End If

        End If

    Next j

 

J’ai essayé de reprendre la méthode pour récupérer les coordonnées des points  correspondant aux charges « linéaires 2P » et aux charges « linéaires sur bord », mais cela ne fonctionne pas. Pouvez-vous me dépanner ? Merci !

9 REPLIES 9
Message 2 of 10

Thanks to translate.google.com we can understand what you mean 🙂



Rafal Gaweda
Message 3 of 10

Dim charges As RobotLoadRecord
......
If serveurcharges.Get(j).Type = I_LRT_LINEAR_ON_EDGES Then Set charges = serveurcharges.Get(j) sss = charges.GetValue(I_LOERV_PZ) endif

 



Rafal Gaweda
Message 4 of 10

My question concerns the problem of recovering the coordinates of points corresponding to the loads "2P linear" loads and "linear on board."
Thank you for your answer

Message 5 of 10

 

My question concerns the problem of recovering the coordinates of points corresponding to the loads "2P linear" loads and "linear on board."

 

Internally , load on edge is converted to 2P linear load (additionally it has isautogenerated = true) so you can access both types by this code:

 

Dim chlin3d As RobotLoadRecordLinear3D
.....
If serveurcharges.Get(j).Type = I_LRT_LINEAR_3D Then
            Set chlin3d = serveurcharges.Get(j)
            chlin3d.GetPoint 1, x, y, z
            chlin3d.GetPoint 2, x, y, z
            aaa = chlin3d.GetValue(I_L3DRV_PZ1)
            bbb = chlin3d.GetValue(I_L3DRV_PZ2)

endif

 



Rafal Gaweda
Message 6 of 10

thank you for your reply. In the example, the points are numbered 1 and 2. Could you tell me how to retrieve the node number given by Robot? thank you.
Message 7 of 10

 Could you tell me how to retrieve the node number given by Robot? thank you.

while creating node you can do it like that

dim Newnumber as Integer

Newnumber = robapp.Project.Structure.Nodes.FreeNumber

 

If you mean smething else please explain.



Rafal Gaweda
Message 8 of 10

If I understand your answer, you tell me how to create a node number. For my part, I want to recover the numbers of nodes in an existing model corresponding to the following command in the str file:
elements
linear
100272 PZ = PZ = -2.2512 -2.2512 JU 100273
Message 9 of 10

These loads in Windows Robot does not act taking into consideration node numbers so is impossible to retrieve easily nodes number.
If you want to find the node you have to search for it checking \ finding by coordinates.


Rafal Gaweda
Message 10 of 10

Shame! Nevertheless, thank you for your help

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

Post to forums  

Autodesk Design & Make Report