Discussion Groups

Robot Structural Analysis

Reply
Active Member
ClaudeSAINTJEAN3202
Posts: 7
Registered: ‎08-30-2012

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

333 Views, 9 Replies
09-06-2012 07:36 AM

 

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 !

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,971
Registered: ‎04-26-2010

Re: charges « linéaires 2P » et aux charges « linéaires sur bord »

09-06-2012 07:45 AM in reply to: ClaudeSAINTJEAN3202

Thanks to translate.google.com we can understand what you mean :-)



Rafal Gaweda
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,971
Registered: ‎04-26-2010

Re: charges « linéaires 2P » et aux charges « linéaires sur bord »

09-06-2012 08:14 AM in reply to: ClaudeSAINTJEAN3202
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
Please use plain text.
Active Member
ClaudeSAINTJEAN3202
Posts: 7
Registered: ‎08-30-2012

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

09-07-2012 01:44 AM in reply to: ClaudeSAINTJEAN3202

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

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,971
Registered: ‎04-26-2010

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

09-07-2012 03:24 AM in reply to: ClaudeSAINTJEAN3202

 

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
Please use plain text.
Active Member
ClaudeSAINTJEAN3202
Posts: 7
Registered: ‎08-30-2012

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

12-17-2013 08:29 AM in reply to: Rafal.Gaweda
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.
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,971
Registered: ‎04-26-2010

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

12-18-2013 12:42 AM in reply to: ClaudeSAINTJEAN3202
 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
Please use plain text.
Active Member
ClaudeSAINTJEAN3202
Posts: 7
Registered: ‎08-30-2012

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

12-18-2013 01:17 AM in reply to: Rafal.Gaweda
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
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,971
Registered: ‎04-26-2010

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

12-18-2013 02:03 AM in reply to: ClaudeSAINTJEAN3202
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
Please use plain text.
Active Member
ClaudeSAINTJEAN3202
Posts: 7
Registered: ‎08-30-2012

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

12-18-2013 04:31 AM in reply to: Rafal.Gaweda
Shame! Nevertheless, thank you for your help
Please use plain text.